LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-01-2003, 11:40 PM   #1
SnowSurfAir
Member
 
Registered: Mar 2003
Distribution: Redhat 9
Posts: 459

Rep: Reputation: 30
.tgz?


How do I unpack a .tgz file?
 
Old 08-01-2003, 11:49 PM   #2
brice2nice
Member
 
Registered: Jul 2003
Location: france
Distribution: GNU/Linux GNU/debian GNU/sarge
Posts: 48

Rep: Reputation: 15
read the tar manual and try tar zxvf yourtargunzipedfile.tgz (z like zip, x like X-tract and v like verbose), it's work with .tar.gz file too ; for .tar.bz2 file use tar jxvf luke !
 
Old 08-01-2003, 11:50 PM   #3
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
I see you are on a Slack install, so it might be a slackware package, so as root
installpkg /path/to/tarball.tgz
you can actually check if it is a tarballed source or pre-compiled binaries for Slack by running
tar tvfz /path/to/tarball.tgz
if it is source wrapped into tgz run
tar xfvz /path/to/tarball.tgz to unpack it and seek farther instructions on installation by reading README/INSTALL files taht might be included with it
 
Old 08-01-2003, 11:50 PM   #4
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
http://www.slackware.com/book/index....rce=c3984.html
 
Old 08-02-2003, 01:01 AM   #5
SnowSurfAir
Member
 
Registered: Mar 2003
Distribution: Redhat 9
Posts: 459

Original Poster
Rep: Reputation: 30
1st off right now im on Redhat 9 + I tried -zxvf but it didnt work
 
Old 08-02-2003, 01:04 AM   #6
brice2nice
Member
 
Registered: Jul 2003
Location: france
Distribution: GNU/Linux GNU/debian GNU/sarge
Posts: 48

Rep: Reputation: 15
so its not a real tgz file try xvf, gunzip it or bzip it or xvfj
 
Old 08-02-2003, 01:17 AM   #7
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
*sigh* brice2nice - have you ever used Slackware? A .tgz package is almost always (not 100% but close) almost always a Slackpack that is installed iwith 'installpkg' - one command (2 counting su): 'installpkg fooapp'. Which is all explained in that wonderful book I linked you to, SnowSurfAir.

If you're trying to install it Red Hat I'll say straight up that I *haven't* used Red Hat so I dunno. I suspect it won't work - at least not without a 'tgz2rpm' if it exists, like Slack uses 'rpm2tgz'.
 
Old 08-02-2003, 01:29 AM   #8
brice2nice
Member
 
Registered: Jul 2003
Location: france
Distribution: GNU/Linux GNU/debian GNU/sarge
Posts: 48

Rep: Reputation: 15
No I nerver use a slack but snowsurfair doesnt tell if or not installpkg works.

To explode a RPM and get the the thing inside use rpm2cpio with cpio :

rpm2cpio plop.rpm | cpio -idv
 
Old 08-02-2003, 01:40 AM   #9
SnowSurfAir
Member
 
Registered: Mar 2003
Distribution: Redhat 9
Posts: 459

Original Poster
Rep: Reputation: 30
well the xvf unpacked it lettme try somethin and if that dont work Ill try installpkg
 
Old 08-02-2003, 01:40 AM   #10
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
True.

And cool - I didn't know about that command. I should learn more about RPM stuff - at least the various conversion tools. But that's not going to help with the tgz. For that, do 'explodepkg', I guess, though I've never had the need to use it.
 
Old 08-02-2003, 01:48 AM   #11
SnowSurfAir
Member
 
Registered: Mar 2003
Distribution: Redhat 9
Posts: 459

Original Poster
Rep: Reputation: 30
Just type 'explodepkg'?
 
Old 08-02-2003, 01:50 AM   #12
SnowSurfAir
Member
 
Registered: Mar 2003
Distribution: Redhat 9
Posts: 459

Original Poster
Rep: Reputation: 30
*just for the record* installpkg didnt work neither did explodepkg
 
Old 08-02-2003, 01:51 AM   #13
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Didn't work? What was the error message?

And, no, you need to specify the filename of what you want to explode as an argument. 'explodepkg stubborn.tgz'
 
Old 08-02-2003, 02:08 AM   #14
brice2nice
Member
 
Registered: Jul 2003
Location: france
Distribution: GNU/Linux GNU/debian GNU/sarge
Posts: 48

Rep: Reputation: 15
Quote:
Originally posted by digiot
True.

And cool - I didn't know about that command. I should learn more about RPM stuff - at least the various conversion tools. But that's not going to help with the tgz. For that, do 'explodepkg', I guess, though I've never had the need to use it.
I think it is usefully to learn more about deb package
 
Old 08-02-2003, 04:38 AM   #15
Cerbere
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & LFS
Posts: 799

Rep: Reputation: 33
SnowSurfAir, you should go back to where you got the .tgz file and see if there's an md5sum or GPG signature so you can check the validity of the file. A Slackware .tgz package should untar with the 'tar -xzvf' command, but it probably won't install correctly on your redhat system. So when you go back to where you got the file, see if they (or someone else) has a .rpm or a .tar.gz file.

Enjoy!
--- Cerbere

[edit] BTW installpkg won't work in redhat either. It's a Slackware-specific command [/edit]

Last edited by Cerbere; 08-02-2003 at 04:41 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
a tgz that doesn't end in tgz flebber VectorLinux 3 05-03-2006 06:31 AM
tgz file doesn't end in .tgz? detpenguin Slackware 4 05-15-2004 08:13 PM
how to tgz Longinus Slackware 5 12-14-2003 11:48 AM
tgz depaul Linux - Software 4 08-26-2003 03:36 PM
X Sever crash after xset.tgz & vg16.tgz install lachlan Slackware 0 08-13-2003 03:48 AM


All times are GMT -5. The time now is 08:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration