LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to extract tgz (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-extract-tgz-125678/)

Longinus 12-14-2003 03:05 AM

how to extract tgz
 
hey guys

how would i extract /.tgz files?

thanks guys

Baldrick65 12-14-2003 03:12 AM

.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

Longinus 12-14-2003 03:23 AM

thanks baldbrick65

Baldrick65 12-14-2003 03:27 AM

To find out what the 'xvzf' mean, use
Code:

man tar
from a console.
Baldrick

trickykid 12-14-2003 10:11 AM

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.

Longinus 12-14-2003 10:51 AM

meh

when i do the installpkg thing it gives me this:

bash: installpkg: command not found

any suggestions?

slakmagik 12-14-2003 10:52 AM

Have to 'su'.

Longinus 12-14-2003 11:16 AM

ah thanks digiot

trickykid 12-14-2003 11:45 AM

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.

Longinus 12-14-2003 09:11 PM

oh woops sorry

heh heh ^_^;

a bit careless there....

rahul zinjurde 12-16-2015 06:07 AM

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

rahul zinjurde 12-16-2015 06:15 AM

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...

yancek 12-16-2015 07:13 AM

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/

rahul zinjurde 12-21-2015 03:21 AM

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

sycamorex 12-21-2015 03:30 AM

Quote:

Originally Posted by rahul zinjurde (Post 5467068)
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.


All times are GMT -5. The time now is 10:19 PM.