LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 12-14-2003, 03:05 AM   #1
Longinus
Member
 
Registered: Sep 2003
Distribution: Redhat 9.0 && Slackware 9.1
Posts: 420

Rep: Reputation: 30
Question how to extract tgz


hey guys

how would i extract /.tgz files?

thanks guys
 
Old 12-14-2003, 03:12 AM   #2
Baldrick65
Member
 
Registered: Aug 2003
Location: Dunedin NZ
Distribution: Mint 13 Cinnamon
Posts: 653

Rep: Reputation: 31
.tgz and tar.gz files are pretty much the same. You extract them like this:
Code:
tar xvzf file.tar.gz
tar xvzf file.tgz
That's all there is to it

Baldrick
 
1 members found this post helpful.
Old 12-14-2003, 03:23 AM   #3
Longinus
Member
 
Registered: Sep 2003
Distribution: Redhat 9.0 && Slackware 9.1
Posts: 420

Original Poster
Rep: Reputation: 30
thanks baldbrick65
 
Old 12-14-2003, 03:27 AM   #4
Baldrick65
Member
 
Registered: Aug 2003
Location: Dunedin NZ
Distribution: Mint 13 Cinnamon
Posts: 653

Rep: Reputation: 31
To find out what the 'xvzf' mean, use
Code:
man tar
from a console.
Baldrick
 
Old 12-14-2003, 10:11 AM   #5
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
And in most cases tgz files are specifically for Slackware systems using the pkgtools to install, remove and upgrade packages.

If you installing a tgz on your Slackware system you can just download or obtain the package and do this to install it as root:

installpkg <package-name.tgz>

To remove you would simply:

rmovepkg <package-name.tgz>

And if you already have the package installed and you want to upgrade it by checking in your /var/log/packages directory to see if it is already installed, you would do something like this:

upgradepkg <name-of-old-package>%<newpackage.tgz>

Note, this method will only work with the tgz files, not the tar.gz. tar.gz or source files will need to be installed the usual way of installing source files, etc.
 
Old 12-14-2003, 10:51 AM   #6
Longinus
Member
 
Registered: Sep 2003
Distribution: Redhat 9.0 && Slackware 9.1
Posts: 420

Original Poster
Rep: Reputation: 30
meh

when i do the installpkg thing it gives me this:

bash: installpkg: command not found

any suggestions?
 
Old 12-14-2003, 10:52 AM   #7
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Have to 'su'.
 
Old 12-14-2003, 11:16 AM   #8
Longinus
Member
 
Registered: Sep 2003
Distribution: Redhat 9.0 && Slackware 9.1
Posts: 420

Original Poster
Rep: Reputation: 30
ah thanks digiot
 
Old 12-14-2003, 11:45 AM   #9
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
Quote:
Originally posted by Longinus
ah thanks digiot
Yeah, you should notice when I mentioned this, I stated you will have to be logged in as root, either logging in or using su of course.

Cheers.
 
Old 12-14-2003, 09:11 PM   #10
Longinus
Member
 
Registered: Sep 2003
Distribution: Redhat 9.0 && Slackware 9.1
Posts: 420

Original Poster
Rep: Reputation: 30
oh woops sorry

heh heh ^_^;

a bit careless there....
 
  


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
Extract specific files from .tgz dgermann Linux - Newbie 6 08-25-2004 10:39 AM
how to extract file *.tgz vanhelsing Linux - Software 1 06-05-2004 06:07 AM
gunzip does not extract *.tgz nausicaa3000 AIX 6 02-07-2004 04:06 PM
extract single directory from .tgz rickenbacherus Linux - General 2 02-07-2004 10:37 AM
how do i extract a .tgz ? lax2sman Linux - Networking 4 02-11-2002 04:40 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration