Operating System - HP-UX
1835114 Members
2326 Online
110076 Solutions
New Discussion

Downloading Patches and using gunzip

 
Vinesh Dhevcharran
Occasional Advisor

Downloading Patches and using gunzip

Hi,

This is the first time I am doing this and therefore the stupid question!!!

I require patch PHCO_23854 and I downloaded this as a zip file and then as a gzip file. I do not have ftp access to the server so I have copied the patches to a cd and then from cd to the server. When mounting the cd I userd "mount -o cdcase /dev/dsk/c3t2d0 /cdrom"

I cannot unzip the .zip cos I do not have this on HP-UX 11.0.B
When I try and use gunzip I get the following:
gunzip -d patche~1.gz

gunzip: patche~1.gz: unexpected end of file

What am I doing wrong?

Many thanks
Vinesh
5 REPLIES 5
Mariusz Grabowski_2
Frequent Advisor

Re: Downloading Patches and using gunzip

Vinesh,
first - try downloading the patch one more time.
second - try downloading in a not compressed format (tar) - it should work.

cheers,
Mariusz
H.Merijn Brand (procura
Honored Contributor

Re: Downloading Patches and using gunzip

Would this script help?

# getpatch.sh PHCO_23854

--8<--- getpatch.sh
#!/usr/bin/sh

OS=11
if [ "${1:--11}" = "-10" ]; then
shift
OS=10
fi

for p in $@ ; do
wget --passive-ftp ftp://ftp.itrc.hp.com/hp-ux_patches/s700_800/$OS.X/$p
sh $p

echo "swinstall -s `pwd`/$p.depot $p"
done
-->8---
Enjoy, Have FUN! H.Merijn
Alex Glennie
Honored Contributor

Re: Downloading Patches and using gunzip

the patch will already be in tar format so just download it.

copy it to CD-ROM, copy the patch to /tmp

run "sh PHCO_23854" this will produce two files the patch and a patchname.text file (read it)

fire up swinstall and use appropriate syntax as per PHCO_23854.text to intall it.

Ravi_8
Honored Contributor

Re: Downloading Patches and using gunzip

Hi, Vinesh

Down load the patch again in .txt format(don't use gzip format). since you have to install this patch, without the root access you can't install. you should be having root password for that machine.
ftp the patch from your PC to HP machine
#sh
#swinstall -s
never give up
Anthony deRito
Respected Contributor

Re: Downloading Patches and using gunzip

Follow the Installation Instructions at the end of the Patch Text file accompanied with the patch. Also be sure to note the Special Instructions. Use rcp to copy the patch file to a depot directory if you cannot ftp although it would be a good idea if you are going to administer the system to have ftp access for yourself. Review the Patch Management Guide for HP-UX. You can access it at http://docs.hp.com/hpux/pdf/5967-3578.pdf. If remote access is still a problem for you, use the above document to copy the patch to a tape then install the patch from tape.