LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-13-2006, 11:47 AM   #1
roAder
Member
 
Registered: May 2004
Location: Sweden, Stockholm
Distribution: Slackware 10.1
Posts: 142

Rep: Reputation: 15
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...
 
Old 04-13-2006, 12:06 PM   #2
geeman2.0
Member
 
Registered: Feb 2005
Location: Ontario, Canada
Distribution: Gentoo, Slackware
Posts: 345

Rep: Reputation: 30
Use the "file" command to find out what your file actually is.
If it is infact a .tgz file, then simply rename it.
 
Old 04-13-2006, 12:06 PM   #3
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
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.
 
Old 04-14-2006, 04:53 AM   #4
roAder
Member
 
Registered: May 2004
Location: Sweden, Stockholm
Distribution: Slackware 10.1
Posts: 142

Original Poster
Rep: Reputation: 15
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.
 
Old 04-14-2006, 06:00 AM   #5
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
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.
 
Old 04-14-2006, 06:26 PM   #6
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 770

Rep: Reputation: 68
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
 
  


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
how can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 14 10-25-2016 02:48 AM
How to INSTALL softwares with *.tar.gz or *.tar.tgz extension On SLACKWARE 10.2 DdOs Linux - Software 4 03-20-2006 01:54 AM
gave wrong syntax for tar as tar -cvzf file file.tgz how to recover the file gautham Linux - General 4 04-13-2005 03:15 AM
.rpms, .tar.gz, .tgz, .src.rpm, & .tar.bz2 whoots Mandriva 10 10-18-2003 12:08 PM
.tgz or .tar.gz c0c0deuz Linux - General 9 12-14-2001 10:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:29 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
Open Source Consulting | Domain Registration