Operating System - HP-UX
1837157 Members
2857 Online
110112 Solutions
New Discussion

What do swcopy and swpackage do?

 
SOLVED
Go to solution
Nguyen Anh Tien
Honored Contributor

What do swcopy and swpackage do?

For examle: I must install 4 Patches (or 4 bundles) named:
PHKL_30607.depot
PHKL_30607.depot
PHKL_30219.depot
PHKL_29047.depot
How do i use swpackage to pack them in to one depot and Install them
HP is simple
6 REPLIES 6
Steven E. Protter
Exalted Contributor
Solution

Re: What do swcopy and swpackage do?

You don't use swpackage

You do this:

script
# for i in PH*
# do
# sh $i
# done

for i in *.depot
do
swcopy -s ${PWD}/$i \* @ ${1}
done


$1 is the full path of the depot you want to make.

The commented code at the top would also unshar the depot's which you already seemed to have done.

SEP
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
Sanjay_6
Honored Contributor

Re: What do swcopy and swpackage do?

Hi,

Maybe this link will help,

http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000066937439

The itrc doc id is HONCIKKBRC00000015

Hope this helps.

Regds
Nguyen Anh Tien
Honored Contributor

Re: What do swcopy and swpackage do?

Dear SEP.
If I do following your way. I must Install 4 times. that is inconvenience. I just install one time for 4 depot.(4 deport are Kernel Patches,If I patches individually i must reboot myserver 4 times).
Thank
HP is simple
Sridhar Bhaskarla
Honored Contributor

Re: What do swcopy and swpackage do?

Hi,

I believe you need little more information. Make the script look like below.

cd /wherever_the_depot_files_are
mkdir /tmp/patchdepot
for i in *.depot
do
swcopy -s ${PWD}/$i \* @ /tmp/patchdepot
done
swreg -l depot /tmp/patchdepot

Now /tmp/patchdepot is a single depot where you can see all the above patches. Simply specify /tmp/patchdepot as the 'target' in your swinstall window, select all the patches and install.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Ranjith_5
Honored Contributor

Re: What do swcopy and swpackage do?


Use swcopy on each patch to copy the patch into a local depot, then use swinstall to install all patches contained in the local depot.
Eg:-
# swcopy -s /tmp/PHKL_30607.depot -x enforce_dependencies=false \* \
@ /tmp/my_patch_depot

# swcopy -s /tmp/PHKL_30607.depot -x enforce_dependencies=false \* \
@ /tmp/my_patch_depot
etc..

# swinstall -s /tmp/my_patch_depot -x autoreboot=true \*


Regards,
Syam
Steven E. Protter
Exalted Contributor

Re: What do swcopy and swpackage do?

All 4 patches need to be in the same direcotry.

Run my code and create a depot called:

/tmp/mydepot.depot

You will see 4 patches in the directory.

swinstall -x autoreboot=true -x reinstall=false -s /tmp/mydepot.depot \*

1 install, one boot.

Sorry if my instructions were incomplete.

SEP
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