1827279 Members
2648 Online
109717 Solutions
New Discussion

patch installation

 
SOLVED
Go to solution
jok llamera
Advisor

patch installation

hi all,

Any tips how to make a one-time install from a group of "individual patch" using swinstall.
FYI, I have downloaded an individual patch with *.txt extension then have used "sh " to extract the text and depot, then tar -xvf <*.depot>. My problem is it creates an individual catalog, so when I check in the swinstall, it only display one patch.

tnx,
joks
Excelence is not an act but a hobby
4 REPLIES 4
James R. Ferguson
Acclaimed Contributor
Solution

Re: patch installation

Hi:

To unshar and collect a series of patches into a depot do this:

# cd /tmp
# for X in PH*
> do
> sh $X
> done
# mkdir /tmp/patches
# for X in /tmp/PH*.depot
> do
> swcopy -s /tmp/${X} \* @ /tmp/patches
> done

...then use /tmp/patches as your depot for 'swinstall'.

Regards!

...JRF...
Santosh Nair_1
Honored Contributor

Re: patch installation

James,

Just a quick note...don't believe you have to make the directory /tmp/patches as swcopy will make the directory for you...

-Santosh
Life is what's happening while you're busy making other plans
Ravi_8
Honored Contributor

Re: patch installation

Hi,

to install multiple patches at once,if u downloaded all the patches under /tmp
then
#for x in '/tmp/*.txt
>do
>sh *.txt
>done
This will create the *.depot for all patches.
#mkdir /tmp/patch_depot
# for x in /tmp/PH*.depot
> do
> swcopy -s /tmp/${X} \* @ /tmp/patch_depot
>done
#swreg -l depot /tmp/patch_depot
#swinstall -s /tmp/patch_depot
select all the patches and install
after installation
#swreg -u -l depot /tmp/patch_depot

later
never give up
Marcin Wicinski
Trusted Contributor

Re: patch installation

Hi,
If you want to move depot to another system its good idea to pack the depot directory structure into one file:

swpackage -s $PWD/depot -d $PWD/ -x target_type=tape \*

Later,
Marcin Wicinski