Operating System - HP-UX
1833381 Members
3668 Online
110052 Solutions
New Discussion

How do you make a Patch Bundle?

 
Andrew Brain or Yong Ji
Occasional Advisor

How do you make a Patch Bundle?

hiya,

i need to create a Patch Bundle with several patches I''ve downloaded. However I've never used 'swpackage', and the man page is confusing. Can someone simply explain how I can do this?
I'm spinning around
8 REPLIES 8
Andy Monks
Honored Contributor

Re: How do you make a Patch Bundle?

Hi I'd do this :-

Assuming you've not unshar'ed them :-

in the directory all the patches are :-

for i in `ls PH*`
do
sh $i
swcopy -s /$I.depot \* @ /var/spool/sw
done

replace with the full path of the directory the patches are in. like /tmp

You can then either swinstall the patches from /var/spool/sw or then package them to tape using

swpackage -s /var/spool/sw -d /dev/rmt/0m -x target_type=tape
Patrick Wessel
Honored Contributor

Re: How do you make a Patch Bundle?

Let's make the assumption that the patches are in tar-format in the /tmp/patch directory:

# cd /tmp/patch
# for i in /tmp/patch/PH??_?????
>do
>sh $I
>swcopy -s $i.depot * @ /var/patches
>done

# swlist -l product @ /var/patches
There is no good troubleshooting with bad data
Andrew Brain or Yong Ji
Occasional Advisor

Re: How do you make a Patch Bundle?

I'VE ALREADY SHARED THE FILE, SO NOW I HAVEA LIST OF .depot AND .text FILES.
I'm spinning around
Andy Monks
Honored Contributor

Re: How do you make a Patch Bundle?

In that case, don't put the line in 'sh $i'
RikTytgat
Honored Contributor

Re: How do you make a Patch Bundle?

Hi,

Patrick and Andy are correct. But there are a few other thing you should watch out for when you plan to install all the patches in the bundle.

- when you have several patches that require a reboot, it might be handy to swmodify the is_reboot flag to false for all patches. The reboot can be done manually at the end of the installation, are can be integrated in a script that takes care of installing the patches and the reboot

- Watch out for patch dependencies and installation order. The patches in your bundle will be installed in alphabetical order. This means that PHCO patches will be installed before PHKL patches and so forth. If there is a dependency between different patche, make sure they are installed in the correct order. This is OK if the alphabetical order is the order of installation. In the other case, you can split the patches into 2 bundles to ensure the right installation order.

Hope this information is of some help,
Rik
Alan Riggs
Honored Contributor

Re: How do you make a Patch Bundle?

Changing the reboot flag is not necessary. Placing the patches into a single depot and installing same will automatically defer the reboot unil the end of the swinstall session.
Cheryl Griffin
Honored Contributor

Re: How do you make a Patch Bundle?

Be sure to check out the patch White Paper in /usr/share/doc/patch_pgrm.txt

Best Wishes,
Cheryl
"Downtime is a Crime."
Wodisch
Honored Contributor

Re: How do you make a Patch Bundle?

The commands to create the patch "depot" from the patch shell archives
is ok, but to put everything into a "bundle" you just need the command
"make_bundles" - which comes with the Ignite/UX product (look in
http://www.software.hp.com/products/IUX to download it - it is free :-)
Install it, and then use "make_bundle -B -n All-Patches -d /var/spool/sw".
That's it.
Wodisch