LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
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
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

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

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 06:09 AM.
 
Old 12-16-2015, 06:15 AM   #12
rahul zinjurde
LQ Newbie
 
Registered: Dec 2015
Posts: 6

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 06:19 AM.
 
Old 12-16-2015, 07:13 AM   #13
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,504

Rep: Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490
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, 03:21 AM   #14
rahul zinjurde
LQ Newbie
 
Registered: Dec 2015
Posts: 6

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, 03:30 AM   #15
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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