LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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, 04: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, 04: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, 04: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, 04: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, 11:11 AM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 229Reputation: 229Reputation: 229
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, 11: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, 11:52 AM   #7
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Have to 'su'.
 
Old 12-14-2003, 12:16 PM   #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, 12:45 PM   #9
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 229Reputation: 229Reputation: 229
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, 10: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....
 
Old 12-16-2015, 07:07 AM   #11
rahul zinjurde
LQ Newbie
 
Registered: Dec 2015
Posts: 4

Rep: Reputation: Disabled
how to extract tar.gz file

in linux how to extract tar.gz file

please give me a answer.....
i think tar -xf is it right or not

Last edited by rahul zinjurde; 12-16-2015 at 07:09 AM.
 
Old 12-16-2015, 07:15 AM   #12
rahul zinjurde
LQ Newbie
 
Registered: Dec 2015
Posts: 4

Rep: Reputation: Disabled
find particular string

suppose any string has 25 character.but i find only 4 character.
so how can i find this 4 character ...
so please give me a ans...

Last edited by rahul zinjurde; 12-16-2015 at 07:19 AM.
 
Old 12-16-2015, 08:13 AM   #13
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,228

Rep: Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019
It is usually preferred that you start your own thread rather than reviving a 12 year old thread. The answers are in post two above. If you want more details they are readily available online at sites such as the one below which gives a fairly detailed explanation of the options.


http://www.cyberciti.biz/faq/linux-u...ct-targz-file/
 
Old 12-21-2015, 04:21 AM   #14
rahul zinjurde
LQ Newbie
 
Registered: Dec 2015
Posts: 4

Rep: Reputation: Disabled
Angry combine two zip file in one file

for ex= here
oct.tar.gz and nov.tar.gz are two file how combine this two in one
 
Old 12-21-2015, 04:30 AM   #15
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,776
Blog Entries: 1

Rep: Reputation: 1169Reputation: 1169Reputation: 1169Reputation: 1169Reputation: 1169Reputation: 1169Reputation: 1169Reputation: 1169Reputation: 1169
Quote:
Originally Posted by rahul zinjurde View Post
for ex= here
oct.tar.gz and nov.tar.gz are two file how combine this two in one
As suggested above, please create your own thread describing your problem.
 
  


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


All times are GMT -5. The time now is 09:29 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration