1838696 Members
5638 Online
110128 Solutions
New Discussion

Patch installation

 
Manoj Sooka
Occasional Advisor

Patch installation

Hello

Is there a way to install multiple single patches, each requiring a reboot, but without having to do a reboot after each patch.
Is there a way to install the multiple patches with just a single reboot.

Many thanks
Manoj
6 REPLIES 6
Wim Rombauts
Honored Contributor

Re: Patch installation

Of course,

Just copy your patches to a software depot (use swcopy without options, it will give you a GUI). If the copy complains about unresolved dependencies, switch dependency checking off in the swcopy options.
Probably, you will have to copy your patches one by one. When all patches are copied, stop swcopy and start swinstall. Select as source the depot you copied everything into. Select all patches you wish to install and you will have just one reboot at the end.

Success.
Rainer von Bongartz
Honored Contributor

Re: Patch installation

you have to create a sw depot for this task :

do the following
suppose you single patch depots are in /var/tmp/patches


for in in /var/tmp/patch_depot
do
swcopy -d -s $i \@ /var/tmp/allpatches.depot
done

this will create a depot at /var/tmp/allpatches.depot which contaiins all single patches for an installation.

you will only have to swinstall /var/tmp/allpatches.depot

Reagrds
Rainer
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
Michael Tully
Honored Contributor

Re: Patch installation

Hi,

The best way to do this is to create a depot.
# mkdir /tmp/patch_depot
un-shar all patches
# for i in PH*.depot
> do
> echo $i
> swcopy -s ${PWD}/$i \* @ /tmp/patch_depot
> done

The run swinstall to install them all in one go.

HTH
-Michael
Anyone for a Mutiny ?
Stefan Farrelly
Honored Contributor

Re: Patch installation

The first 2 replies are correct, but the 2nd one should read;

for i in /var/tmp/patches
do
swcopy .....
Im from Palmerston North, New Zealand, but somehow ended up in London...
Ravi_8
Honored Contributor

Re: Patch installation

Hi,
download all the patches to be installed to /tmp which will be in .txt format
#for i in /tmp/*
>do
>sh *.txt
>done
This will create .depot files
#mkdir /tmp/patch_depot
# for i in PH*.depot
> do
> echo $i
> swcopy -s ${PWD}/$i \* @ /tmp/patch_depot
> done

#swreg -l depot /tmp/patch_depot
#swinstall -s /tmp/patch_depot
will install all your patches in a shot, ofcourse you need to reboot.
never give up
Wim Rombauts
Honored Contributor

Re: Patch installation

When you're not very familiar with unix, you better stick with GUI's instead of cryptic shell commands. This also works if you don't have a graphical display !
Since you already know how to install patched individually, I think you can set the patches ready to install. After you have t-done that, do the following :
Create (as root) a directory where you will set your software depot (mkdir ...).
Then just type "swcopy". A window will pop-up to ask wher you want to copy the patches to (target depot). Enter the path to the directory you just created. The depot will register itself automatically.
Then, a window will pop-up to ask the source of your patche(s). Give the full path to your first patch, and click OK. You will see tha patch appear in the window. Select the patch and then open the actions menu and select "copy analysis". After a succesful analysis, you can start the copy.
To start copying the next patch, open the action pull-down menu and select "change source".
It's a bit of clicking, but a lot more easier to understand and follow what you're doing. The above given command line solutions are working also of course.