LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   .tgz? (https://www.linuxquestions.org/questions/linux-software-2/tgz-78216/)

SnowSurfAir 08-01-2003 10:40 PM

.tgz?
 
How do I unpack a .tgz file?

brice2nice 08-01-2003 10:49 PM

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 !

neo77777 08-01-2003 10:50 PM

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

slakmagik 08-01-2003 10:50 PM

http://www.slackware.com/book/index....rce=c3984.html

SnowSurfAir 08-02-2003 12:01 AM

1st off right now im on Redhat 9 + I tried -zxvf but it didnt work

brice2nice 08-02-2003 12:04 AM

so its not a real tgz file try xvf, gunzip it or bzip it or xvfj

slakmagik 08-02-2003 12:17 AM

*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'.

brice2nice 08-02-2003 12:29 AM

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

slakmagik 08-02-2003 12:40 AM

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.

SnowSurfAir 08-02-2003 12:40 AM

well the xvf unpacked it lettme try somethin and if that dont work Ill try installpkg

SnowSurfAir 08-02-2003 12:48 AM

Just type 'explodepkg'?

SnowSurfAir 08-02-2003 12:50 AM

*just for the record* installpkg didnt work neither did explodepkg

slakmagik 08-02-2003 12:51 AM

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'

brice2nice 08-02-2003 01:08 AM

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 :)

Cerbere 08-02-2003 03:38 AM

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]


All times are GMT -5. The time now is 05:12 AM.