1825766 Members
2067 Online
109687 Solutions
New Discussion

gunzip.

 
khilari
Regular Advisor

gunzip.

Hi people, okay so i downloaded some java patches. Their extension was .tgz. I gunzipped them and now they have become .tar.
Now, how do i go about installing them.
Thanks.
8 REPLIES 8
khilari
Regular Advisor

Re: gunzip.

This is the output when i do tar -tvf on them.


# tar -tvf /tmp/j1.tar
rw-r----- 50/100 92 Apr 4 14:43 2006 patch_manifest
rw-r--r-- 50/100 1831 Feb 23 22:09 2006 README_hp-ux
rwxr-xr-x 50/100 5768 Apr 4 14:43 2006 create_depot_hp-ux_11
rw-r--r-- 50/100 14490424 Oct 11 05:41 2005 PHSS_33033
# tar -tvf /tmp/j2.tar
rw-r----- 50/100 89 Apr 4 14:33 2006 patch_manifest
rw-r--r-- 50/100 1831 Feb 23 22:09 2006 README_hp-ux
rwxr-xr-x 50/100 5768 Apr 4 14:33 2006 create_depot_hp-ux_11
rw-r--r-- 50/100 82694 May 28 01:31 2005 PHKL_32927
# tar -tvf /tmp/j3.tar
rw-r----- 50/100 408 Apr 4 14:35 2006 patch_manifest
rw-r--r-- 50/100 1831 Feb 23 22:10 2006 README_hp-ux
rwxr-xr-x 50/100 5768 Apr 4 14:35 2006 create_depot_hp-ux_11
rw-r--r-- 50/100 125517 Apr 1 01:45 2004 PHKL_30398
rw-r--r-- 50/100 145910 Jun 28 02:56 2005 PHKL_33367
rw-r--r-- 50/100 348317 Mar 1 22:31 2006 PHKL_34024
rw-r--r-- 50/100 253988 Jul 17 23:17 2002 PHCO_24777
rw-r--r-- 50/100 268648 Nov 12 00:35 2002 PHCO_27120
rw-r--r-- 50/100 5428996 Mar 7 21:58 2006 PHNE_33498
A. Clay Stephenson
Acclaimed Contributor

Re: gunzip.

Typically, it's nothing more than tar xvf mypatches.tar (substituting the actual name for "mypatches") and that will create a mypatches directory just below the CWD. You then cd to mypatches and there will almost always be a file "README" that gives the installation instructions.
If it ain't broke, I can fix that.
Rick Garland
Honored Contributor

Re: gunzip.

It was a gzip'ped tarball file.
Create the tarball then gzip it.

To get it out, ungzip
tar -xvf

These steps can be combined in a single line command


khilari
Regular Advisor

Re: gunzip.

Can anyone kindly, translate the creating a depot instructions in english for me. Thanks.
Where do i get the create depot script from!!!
Creating a depot
----------------

2. Run the create_depot script as user "root". create_depot_hp-ux_11
must run on a 11.X system. The create_depot_hp-ux script unpacks the
patches, and uses swcopy to create the /tmp/patches/depot directory.

3. After the depot is created, remove the individual patches, .text, and
.depot files.

4. If you are creating more than one depot, rename the
/tmp/patches/depot directory, and remove /tmp/patches/depot.psf.
A. Clay Stephenson
Acclaimed Contributor

Re: gunzip.

Note that your tar listing includes the very file you are seeking, create_depot_hp-ux_11. In this case,
mkdir /var/tmp/patches
cd /var/tmp/patches
tar xvf /tmp/j1.tar
sh ./create_depot_hp-ux_11

If it ain't broke, I can fix that.
khilari
Regular Advisor

Re: gunzip.

I am getting an error, at the end of making the depot!!!

Thanks.

# mkdir /var/tmp/patches
# cd /var/tmp/patches
# tar xvf /tmp/j1.tar
x patch_manifest, 92 bytes, 1 tape blocks
x README_hp-ux, 1831 bytes, 4 tape blocks
x create_depot_hp-ux_11, 5768 bytes, 12 tape blocks
x PHSS_33033, 14490424 bytes, 28302 tape blocks
# sh ./create_depot_hp-ux_11
DEPOT: /var/tmp/patches/depot
BUNDLE: BUNDLE
TITLE: Patch Bundle
UNSHAR: y
PSF: depot.psf
Expanding patch shar files...
x - PHSS_33033.text
x - PHSS_33033.depot [non-ascii]
list of SD installable patches = PHSS_33033
Copying PHSS_33033 into depot /var/tmp/patches/depot

======= 04/04/06 15:35:48 EDT BEGIN swcopy SESSION (non-interactive)
(jobid=newFIN-0022)

* Session started for user "root@newFIN".

* Beginning Selection
ERROR: "newFIN:/var/tmp/patches/depot": You do not have the required
permissions to select this target. Check permissions using
the "swacl" command or see your system administrator for
assistance. Or, to manage applications designed and packaged
for nonprivileged mode, see the "run_as_superuser" option in
the "sd" man page.
* Target connection failed for "newFIN:/var/tmp/patches/depot".
ERROR: More information may be found in the daemon logfile on this
target (default location is newFIN:/var/adm/sw/swagentd.log).
* Selection had errors.



======= 04/04/06 15:35:48 EDT END swcopy SESSION (non-interactive)
(jobid=newFIN-0022)

ERROR: Could not swcopy PHSS_33033 into depot.
Bundling patches in depot

======= 04/04/06 15:35:48 EDT BEGIN swpackage SESSION

* Session started for user "root@newFIN".

* Source: newFIN:depot.psf
* Target: newFIN:/var/tmp/patches/depot
* Software selections:
*


* Beginning Selection Phase.
* Reading the Product Specification File (PSF) "depot.psf".
* Reading the bundle "BUNDLE" at line 13.

NOTE: Creating new target depot "/var/tmp/patches/depot".
* Selection Phase succeeded.


* Beginning Analysis Phase.
* Analysis Phase succeeded.


* Beginning Package Phase.

* Packaging the bundle
"BUNDLE,r=B.11.11,a=HP-UX_B.11.11_32/64,v=HP".
* Package Phase succeeded.


NOTE: You must register the new depot "/var/tmp/patches/depot" to
make it generally available as a source for swinstall and
swcopy tasks. To register it, execute the command

swreg -l depot /var/tmp/patches/depot


======= 04/04/06 15:35:49 EDT END swpackage SESSION

Verifying the depot.

======= 04/04/06 15:35:49 EDT BEGIN swverify SESSION
(non-interactive) (jobid=newFIN-0023)

* Session started for user "root@newFIN".

* Beginning Selection
* Target connection succeeded for
"newFIN:/var/tmp/patches/depot".
* Software selections:
BUNDLE,r=B.11.11,a=HP-UX_B.11.11_32/64,v=HP
* Selection succeeded.


* Beginning Analysis
* Session selections have been saved in the file
"/.sw/sessions/swverify.last".
* "newFIN:/var/tmp/patches/depot": There will be no attempt to
mount filesystems that appear in the filesystem table.
* Verification succeeded.


NOTE: More information may be found in the agent logfile using the
command "swjob -a log newFIN-0023 @
newFIN:/var/tmp/patches/depot".

======= 04/04/06 15:35:49 EDT END swverify SESSION (non-interactive)
(jobid=newFIN-0023)

ERROR: Errors were found while building depot.
V. Nyga
Honored Contributor

Re: gunzip.

Hi,

you have to run the script as 'root'.
As another user you don't have the permissions!

Volkmar
*** Say 'Thanks' with Kudos ***
Antonio Cardoso_1
Trusted Contributor

Re: gunzip.

Hi,

additionally to other information in this thread, you can also unzip/untar in a single command.

- list contents of archive:
gunzip -cd file.tgz | tar -tvf -

- extract contents of archive:
gunzip -cd file.tgz | tar -xvf -

antonio.