Slackware This Forum is for the discussion of Slackware Linux.
|
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.
|
 |
04-13-2006, 11:47 AM
|
#1
|
Member
Registered: May 2004
Location: Sweden, Stockholm
Distribution: Slackware 10.1
Posts: 142
Rep:
|
tar tgz tar.gz ???
I know I've posted this question on another thread but I tink I need a new thread to post this question so please delete my other post for me since I dont know how to do that...
well I had downloaded a .tgz package from internet on my dads computer which is running on XP. But when I burned the .tgz file onto a CD to be able to move it to my Slack laptop, the file somehow had renamed itself or converted into another file called .tar
I have no idea how this happend but I really need it to be a .tgz file....
extremely grateful for answers...
|
|
|
04-13-2006, 12:06 PM
|
#2
|
Member
Registered: Feb 2005
Location: Ontario, Canada
Distribution: Gentoo, Slackware
Posts: 345
Rep:
|
Use the "file" command to find out what your file actually is.
If it is infact a .tgz file, then simply rename it.
|
|
|
04-13-2006, 12:06 PM
|
#3
|
Senior Member
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247
Rep:
|
Check if its contents are not damaged. There should be doinst.sh and slack-desc in install folder. If they are, just rename tar.gz into tgz.
|
|
|
04-14-2006, 04:53 AM
|
#4
|
Member
Registered: May 2004
Location: Sweden, Stockholm
Distribution: Slackware 10.1
Posts: 142
Original Poster
Rep:
|
thanks allot for the answers!
I just used tar -xfj command on the package and then used gzip and then renamed it to xxxx.tgz
I just don't really understand why installpkg command can't be used on tar.gz packages when they are thesame thing as tgz packages..
well thanks again.
|
|
|
04-14-2006, 06:00 AM
|
#5
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467
Rep: 
|
They aren't the same: tar.gz usually just contains the source code, which you must compile yourself - usually ./configure make make install etc
A slackware package .tgz is already compiled and when you do installpkg it just copies the pre-compiled binaries to the proper directories to run.
|
|
|
04-14-2006, 06:26 PM
|
#6
|
Member
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 770
Rep:
|
my understanding is this:
the contents of an archive are not determined by the file suffix!
*.z is a tar file - this is usually used to add more than one file into a single file (usually prior to compression)
*.gz is a compressed file using the gzip utility
*.tar.gz is one or more files tarred and gzipped
*.tgz is an abbreviation of the above, and is also the *special* case of slackware packages
a *.tgz is not necessarily a slackware package!
be careful when using windows to download or modify linux/unix files, as it will do strange things sometimes, but in your case a rename as stated previously should fix it.
there is also commonly found *.bz2
for *.tar.gz use tar -xvzf
for *.bz2 use tar -xjvf
|
|
|
All times are GMT -5. The time now is 01:29 PM.
|
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
|
|