Operating System - HP-UX
1833738 Members
2488 Online
110063 Solutions
New Discussion

installation of many patches / bundle

 
SOLVED
Go to solution
praveen..
Super Advisor

installation of many patches / bundle

Hi, I need to install these 7 patches on my server:

and the below are the 5 dependency to install these patches

1. PHNE_31097;
1(a). PHCO_33205 (dependency)
b(a). PHCO_30398 (dependency)

2. PHSS_32508;
3. PHSS_32509;
4. PHSS_32510;
5. PHSS_30970;

6. PHSS_32731;
6(a). PHNE_28810 (dependency)
6(a). PHSS_32732 (dependency)

7. PHCO_31312;
7(a). PHCO_33142 (dependency)


I have download all these in one zip file from ITRC.
I have extracted it and copied to my unix server OS: HP-ux b.11.11

I have create a "patches" directory under /tmp and copied all the files in /tmp/patches.

# pwd
/tmp/patches
# ll
total 163392
-rw-r--r-- 1 root sys 7217145 Apr 28 2005 PHCO_31312
-rw-r--r-- 1 root sys 470324 Mar 14 07:44 PHCO_33142
-rw-r--r-- 1 root sys 227962 Aug 29 2005 PHCO_33205
-rw-r--r-- 1 root sys 125517 Mar 31 2004 PHKL_30398
-rw-r--r-- 1 root sys 1265390 Nov 28 2003 PHNE_28810
-rw-r--r-- 1 root sys 5336505 Apr 11 2005 PHNE_31097
-rw-r--r-- 1 root sys 17161388 Feb 14 2006 PHSS_32508
-rw-r--r-- 1 root sys 7807420 Feb 14 2006 PHSS_32509
-rw-r--r-- 1 root sys 5264860 Feb 14 2006 PHSS_32510
-rw-r--r-- 1 root sys 19483606 Sep 6 2005 PHSS_32731
-rw-r--r-- 1 root sys 4474544 Mar 30 2005 PHSS_32732
-rw-r--r-- 1 root sys 14752920 Aug 10 19:16 PHSS_33035
-rw-r--r-- 1 root sys 1831 May 12 11:45 README_hp-ux
-rw-r--r-- 1 root sys 5776 Aug 22 02:22 create_depot_hp-ux_11
-rw-r--r-- 1 root sys 826 Aug 22 02:22 patch_manifest
#

then i gave the command:
#cd /tmp/patches
#./create_depot_hp-ux_11
::::::::::::
::::::::::::

#

This command created so many file under /tmp/patches:

# pwd
/tmp/patches
# ll
total 280512
-rwxrwxrwx 1 root sys 7217145 Apr 28 2005 PHCO_31312
-rw-r--r-- 1 root sys 5007360 Dec 21 2004 PHCO_31312.depot
-rw-r--r-- 1 root sys 200795 Dec 22 2004 PHCO_31312.text
-rwxrwxrwx 1 root sys 470324 Mar 14 07:44 PHCO_33142
-rw-r--r-- 1 root sys 317440 Mar 6 09:23 PHCO_33142.depot
-rw-r--r-- 1 root sys 19844 Mar 13 13:39 PHCO_33142.text
-rwxrwxrwx 1 root sys 227962 Aug 29 2005 PHCO_33205
-rw-r--r-- 1 root sys 153600 Jun 27 2005 PHCO_33205.depot
-rw-r--r-- 1 root sys 6881 Aug 29 2005 PHCO_33205.text
-rwxrwxrwx 1 root sys 125517 Mar 31 2004 PHKL_30398
-rw-r--r-- 1 root sys 81920 Feb 9 2004 PHKL_30398.depot
-rw-r--r-- 1 root sys 4788 Mar 31 2004 PHKL_30398.text
-rwxrwxrwx 1 root sys 1265390 Nov 28 2003 PHNE_28810
-rw-r--r-- 1 root sys 890880 Jul 4 2003 PHNE_28810.depot
-rw-r--r-- 1 root sys 14989 Jul 17 2003 PHNE_28810.text
-rwxrwxrwx 1 root sys 5336505 Apr 11 2005 PHNE_31097
-rw-r--r-- 1 root sys 3665920 Dec 24 2004 PHNE_31097.depot
-rw-r--r-- 1 root sys 198188 Feb 15 2005 PHNE_31097.text
-rwxrwxrwx 1 root sys 17161388 Feb 14 2006 PHSS_32508
-rw-r--r-- 1 root sys 12236800 Jan 31 2005 PHSS_32508.depot
-rw-r--r-- 1 root sys 23845 Feb 1 2005 PHSS_32508.text
-rwxrwxrwx 1 root sys 7807420 Feb 14 2006 PHSS_32509
-rw-r--r-- 1 root sys 5560320 Feb 4 2005 PHSS_32509.depot
-rw-r--r-- 1 root sys 16936 Feb 7 2005 PHSS_32509.text
-rwxrwxrwx 1 root sys 5264860 Feb 14 2006 PHSS_32510
-rw-r--r-- 1 root sys 3747840 Feb 4 2005 PHSS_32510.depot
-rw-r--r-- 1 root sys 11823 Feb 7 2005 PHSS_32510.text
-rwxrwxrwx 1 root sys 19483606 Sep 6 2005 PHSS_32731
-rw-r--r-- 1 root sys 13864960 Mar 24 2005 PHSS_32731.depot
-rw-r--r-- 1 root sys 66590 Mar 28 2005 PHSS_32731.text
-rwxrwxrwx 1 root sys 4474544 Mar 30 2005 PHSS_32732
-rw-r--r-- 1 root sys 3174400 Mar 24 2005 PHSS_32732.depot
-rw-r--r-- 1 root sys 24310 Mar 30 2005 PHSS_32732.text
-rwxrwxrwx 1 root sys 14752920 Aug 10 19:16 PHSS_33035
-rw-r--r-- 1 root sys 10424320 Apr 28 10:56 PHSS_33035.depot
-rw-r--r-- 1 root sys 152819 May 1 16:41 PHSS_33035.text
-rwxrwxrwx 1 root sys 1831 May 12 11:45 README_hp-ux
-rwxrwxrwx 1 root sys 5776 Aug 22 02:22 create_depot_hp-ux_11
drwxr-xr-x 16 root sys 8192 Aug 28 05:06 depot
-rw-r--r-- 1 root sys 1218 Aug 28 05:05 depot.psf
-rwxrwxrwx 1 root sys 826 Aug 22 02:22 patch_manifest
#

So now which command should i use to install these patches? should i use the below command or something else?

#swinstall -s /tmp/patches/depot {where depot is a directory}

will it install all the patches in only one reboot or do i need to restart the server after every patch installation?

please let me know the complete procedure.

Thanks






12 REPLIES 12
Gary L. Paveza, Jr.
Trusted Contributor

Re: installation of many patches / bundle

By creating the depot, the swinstall software will take care of installing all patches (that qualify) in one go. Only one reboot will be needed.
Jaime Bolanos Rojas.
Honored Contributor

Re: installation of many patches / bundle

Hi praveen,

you can also follow the advised on this thread,

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1052765

Regards,

Jaime.
Work hard when the need comes out.
Victor Fridyev
Honored Contributor

Re: installation of many patches / bundle

Hi,

Run:

swlist -s /tmp/patches/depot

You will see something like:
BUNDLE B.11.11 Patch Bundle

Run:

swinstall [-x autoreboot=true] -s /tmp/patches/depot BUNDLE

Everything will be installed.

HTH

Entities are not to be multiplied beyond necessity - RTFM
Steven E. Protter
Exalted Contributor
Solution

Re: installation of many patches / bundle

Shalom,

All you need is to specify all patches for install \* and -x autoreboot=true because this patch set is very likely to boot your system.

swinstall -x autoreboot=true -x reinstall=false -s /path_to_depot \*

I add the second -x because once I worked on a system that had the default changed to permit reinstall and I nearly turned it into a brick with PHKL_18543

SEP@NYC
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
Pupil_1
Trusted Contributor

Re: installation of many patches / bundle

You can use the swreg -l depot to create the depot and then install them with swinstall.
There is always something new to learn everyday !!
praveen..
Super Advisor

Re: installation of many patches / bundle

so now which command, should i use 1 OR 2:
1. #swinstall -s /tmp/patches/depot {where depot is a directory}

2. #swinstall -x autoreboot=true -x reinstall=false -s /tmp/patches/depot \*

is there any space in between "/tmp/patches/depot" and "\*" ?

what does "\*" means?

Thanks




inventsekar_1
Respected Contributor

Re: installation of many patches / bundle

i think the 2nd is the correct. wait for others msg.

autoreboot=true -->is needed.
reinstall=false --> is the default option. no need. i think.

The \* is an optional shorthand wildcard meaning â all products and filesets or all available software.â

and there is a "space" between "/tmp/patches/depot" and "\*"

man swinstall
and search for \* ie, /\*
Be Tomorrow, Today.
Sp4admin
Trusted Contributor

Re: installation of many patches / bundle

Since you have created the depot with the "#./create_depot_hp-ux_11" command. they should we ready to install. All you should need to do is run "swinstall" and select the full path of your depot.

sp,
Victor Fridyev
Honored Contributor

Re: installation of many patches / bundle

Hi,

\* means "all patches from the depot", in your case you can use either \* or BUNDLE

I personally prefer:
swinstall -x autoreboot=true -x reinstall=false -s /tmp/patches/depot BUNDLE

but you can replace BUNDLE with \*

HTH
Entities are not to be multiplied beyond necessity - RTFM
praveen..
Super Advisor

Re: installation of many patches / bundle

any suggestions?

or should i go with:
#swinstall -x autoreboot=true -x reinstall=false -s /tmp/patches/depot BUNDLE


Thanks
rariasn
Honored Contributor

Re: installation of many patches / bundle

Hi,

# export DISPLAY=xxxxxxx:0.0

# swinstall -s /tmp/patches/depot &

Only one "reboot".



rgs,

ran
praveen..
Super Advisor

Re: installation of many patches / bundle

any suggestions?

or should i go with:
#swinstall -x autoreboot=true -x reinstall=false -s /tmp/patches/depot BUNDLE


Thanks
praveen