Operating System - HP-UX
1752805 Members
5571 Online
108789 Solutions
New Discussion юеВ

Re: to unzip the .tgz file.

 
arun khatwani
Frequent Advisor

to unzip the .tgz file.

How can i unzip or untar the .tgz file ,

i have installed a .tgz file , i.e the patches files, and i have to untar it and create a depot file,

So please let me know how i untar the .tgz file.
8 REPLIES 8
James R. Ferguson
Acclaimed Contributor

Re: to unzip the .tgz file.

Hi:

This is simply a compressed tar archive. You can simply do:

# gzip -d mydepot.tgz

...which will yield: mydepot.tar

# tar -xvf mydepot.tar

Regards!

...JRF...
Prashanth Waugh
Esteemed Contributor

Re: to unzip the .tgz file.

Hi
gunzip -c ptaches.tgz | tar -xvf

Regards,
Prashant
For success, attitude is equally as important as ability
Roland Piette
Regular Advisor

Re: to unzip the .tgz file.

Hi,

Do the following in a dedicated directory.

Two steps :
1) gunzip filename.tgz (file suffix will change to filename.tar)

2) tar xvf filename.tar (will extract all files)

After that you have to generate de depot with create_depot_xxxx file depending of the OS release.

This utility will create a subdirectory name depot.

You will be ready to install your depot with swinstall -s depot_directory

Note that depot_directory is an absolute path reference.

Regards,
Roland
Mark S Meadows
Valued Contributor

Re: to unzip the .tgz file.

Hi Arun,

The command you are looking for is gunzip.

See : man gunzip

Regards,

Mark
Administrating HP-UX systems for more years than I care to admit, but still enjoying it (most of the time!).
Dennis Handly
Acclaimed Contributor

Re: to unzip the .tgz file.

>Prashant: gunzip -c ptaches.tgz | tar -xvf

Or: gzcat ptaches.tgz | tar -xvf -
(You missed the "-" at the end.)
Matti_Kurkela
Honored Contributor

Re: to unzip the .tgz file.

Note: the .depot format can be the same as .tar. If someone or something has mistakenly renamed a .depot.gz file to .tgz, untarring the file will not produce a working depot.

Instead you should first just gunzip the .tgz file as advised by others in this thread, and then try running "swlist -s /full/path/to/filename.tar" on the result. If this produces a valid listing of the contents, the file was actually .depot.gz. In this case, you can and should install it with swinstall directly without untarring it.

If swlist reports that the file is not a valid depot, then view its contents listing with "tar tf filename.tar" and untar it with "tar xvf filename.tar".

MK
MK
Prashanth Waugh
Esteemed Contributor

Re: to unzip the .tgz file.

Hi Dennis,

Sorry I missed out - It should be
gunzip -c ptaches.tgz | tar -xvf -

Thanks for correction.

Regards,
Prashant
For success, attitude is equally as important as ability
Suraj K Sankari
Honored Contributor

Re: to unzip the .tgz file.

Hi Arun,
If your problem get solved then assign some points, people who give there valuable time to your problem you also take some time to assign points to there work.
If you don├Г┬в├В ├В t know how to assign please see this below link.

http://forums13.itrc.hp.com/service/forums/helptips.do?#33

Suraj