1832694 Members
3114 Online
110043 Solutions
New Discussion

Re: swcopy question

 
SOLVED
Go to solution
Rainer von Bongartz
Honored Contributor

swcopy question


I have about 25 patches to be installed
I dowloaded the patches, unpacked them and now have 25 .depot files to be installed.

I want to copy these depots to a directory using swcopy so that I can install all patches at one time.

I'm fighting with swcopy options to do this from the shell, as I don't want to use sam for this task.

Can anybody tell me how to do this ??
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
4 REPLIES 4
Alex Glennie
Honored Contributor
Solution

Re: swcopy question

# for i in PH*.depot
do
swcopy -s ${PWD}/$i \* @ /var/opt/ignite/Patches
done

Verify the contents of the depot using :
# swlist -d @ /var/opt/ignite/Patches
Rainer von Bongartz
Honored Contributor

Re: swcopy question

Thanks Alex, works fine
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
Ravi_8
Honored Contributor

Re: swcopy question

Hi,
first you need to create a depot

here is the procedure:
assuming all your depot files are under /tmp
#mkdir /tmp/patch_depot
#swcopy -s /tmp/patch1_name.depot patch1_name @ /tmp/patch_depot

eg; for patch PHKL_16957
swcopy -s /tmp/PHKL_16957.depot PHKL_16957 @ /tmp/patch_depot
(repeat the same for all patches)
#swreg -l depot /tmp/patch_depot
#swinstall -s /tmp/patch_depot
after patch installation is over
#swreg -u -l depot /tmp/patch_depot.

This will install all your patches.
never give up
Vincent Stedema
Esteemed Contributor

Re: swcopy question

Hi,

Also, you might want to add the "-x enforce_dependencies=false" to the swcopy command supplied by Alex. Otherwise the swcopy will halt when some of the patches are dependent on one another and you will have to swcopy them in the correct order to resolve these dependencies.

Regards,

Vincent