1828915 Members
2346 Online
109986 Solutions
New Discussion

Help installing patches

 
SOLVED
Go to solution
Jesse Willardson_1
New Member

Help installing patches

This should be the easiest question ever posted.
Can anyone direct meto a simple Howto on installing patches found on this website such as PHKL_25506?
Ive been able to install third party packages like "bash" off of the HP porting site, but get an IO error when trying to install these patches with swinstall

Thanks


4 REPLIES 4
Pete Randall
Outstanding Contributor
Solution

Re: Help installing patches

You need to unshar them first:

"sh PHKLxxxx"

This will give you three files, PHKLxxxx, PHKLxxxx.txt and PHKLxxxx.depot.

You then run swinstall against the depot:

"swinstall -s /full_path_to/PHKLxxxx.depot


That should do it!


Pete

Pete
Cheryl Griffin
Honored Contributor

Re: Help installing patches

IO error suggests there was a problem in the download of the patch. Make sure that if you download to a PC first, to ftp the patch in binary mode to the HP-UX machine.

Use tar as a way to check if the download/transfer was successful. If tar can read the depot successfully, so should swinstall.
# tar -tvf PHKL_25506
"Downtime is a Crime."
Sundar_7
Honored Contributor

Re: Help installing patches


if you dont want to be invoking the swinstall TUI/GUI and would like to install the patch from the command line then add a \* at the end of the swinstall command

swinstall -s /full_path_to/PHKLxxxx.depot \*

Since this is a kernel patch, you would require a reboot

swinstall -s /full_path_to/PHKLxxxx.depot -x autoreboot=true \*

the above command will install the patch, rebuild the kernel and REBOOT the system.
Learn What to do ,How to do and more importantly When to do ?
Steven E. Protter
Exalted Contributor

Re: Help installing patches

I've always found the most reliable way to get patches is to use the patch database to find what you what and get dependendcies.

Then choose the download by ftp option. You get an ftp script that goes to hp and gets it all.

It gets the patches, it gives you a script to create the depot, and it can be run in the background at night if you want. The other methods sometimes terminate without warning and you get an i/o error because you never downloaded the complete patch set.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com