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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-01-2003, 10:40 PM
|
#1
|
Member
Registered: Mar 2003
Distribution: Redhat 9
Posts: 459
Rep:
|
.tgz?
How do I unpack a .tgz file?
|
|
|
08-01-2003, 10:49 PM
|
#2
|
Member
Registered: Jul 2003
Location: france
Distribution: GNU/Linux GNU/debian GNU/sarge
Posts: 48
Rep:
|
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 !
|
|
|
08-01-2003, 10:50 PM
|
#3
|
LQ Addict
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704
Rep:
|
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
|
|
|
08-01-2003, 10:50 PM
|
#4
|
Senior Member
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113
Rep: 
|
|
|
|
08-02-2003, 12:01 AM
|
#5
|
Member
Registered: Mar 2003
Distribution: Redhat 9
Posts: 459
Original Poster
Rep:
|
1st off right now im on Redhat 9 + I tried -zxvf but it didnt work
|
|
|
08-02-2003, 12:04 AM
|
#6
|
Member
Registered: Jul 2003
Location: france
Distribution: GNU/Linux GNU/debian GNU/sarge
Posts: 48
Rep:
|
so its not a real tgz file try xvf, gunzip it or bzip it or xvfj
|
|
|
08-02-2003, 12:17 AM
|
#7
|
Senior Member
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113
Rep: 
|
*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'.
|
|
|
08-02-2003, 12:29 AM
|
#8
|
Member
Registered: Jul 2003
Location: france
Distribution: GNU/Linux GNU/debian GNU/sarge
Posts: 48
Rep:
|
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
|
|
|
08-02-2003, 12:40 AM
|
#9
|
Member
Registered: Mar 2003
Distribution: Redhat 9
Posts: 459
Original Poster
Rep:
|
well the xvf unpacked it lettme try somethin and if that dont work Ill try installpkg
|
|
|
08-02-2003, 12:40 AM
|
#10
|
Senior Member
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113
Rep: 
|
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.
|
|
|
08-02-2003, 12:48 AM
|
#11
|
Member
Registered: Mar 2003
Distribution: Redhat 9
Posts: 459
Original Poster
Rep:
|
Just type 'explodepkg'?
|
|
|
08-02-2003, 12:50 AM
|
#12
|
Member
Registered: Mar 2003
Distribution: Redhat 9
Posts: 459
Original Poster
Rep:
|
*just for the record* installpkg didnt work neither did explodepkg
|
|
|
08-02-2003, 12:51 AM
|
#13
|
Senior Member
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113
Rep: 
|
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'
|
|
|
08-02-2003, 01:08 AM
|
#14
|
Member
Registered: Jul 2003
Location: france
Distribution: GNU/Linux GNU/debian GNU/sarge
Posts: 48
Rep:
|
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 
|
|
|
08-02-2003, 03:38 AM
|
#15
|
Member
Registered: Dec 2002
Location: California
Distribution: Slackware & LFS
Posts: 799
Rep:
|
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 03:41 AM.
|
|
|
All times are GMT -5. The time now is 06:32 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|