1851726 Members
6220 Online
104062 Solutions
New Discussion

creating a depot

 
SOLVED
Go to solution
lawrenzo_1
Super Advisor

creating a depot

Hello

we are trying to create a depot and copy a couple of patch's to this depot.

From the manual the /tmp/depot is created then we run;

# swcopy -s /depot/11.00/PH \* /tmp/depot.

could someone explain what we are doing wrong.

Thanks
hello
4 REPLIES 4
Steven E. Protter
Exalted Contributor
Solution

Re: creating a depot


depname=/tmp/mydepot.depot
export depname
# for i i
# do
# sh $i
# done

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

The commented part unshars the patches.

All patches must be in one directory and you must be in that directory.

Then this command set will build you a depot named /tmp/mydepot.depot

swinstall -s /tmp/mydepot.depot \*

Will install your newly created depot

add -x autoreboot=true if the depot includes patches that require a reboot.

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
Con O'Kelly
Honored Contributor

Re: creating a depot

Hi

To copy a patch into a depot use:
# swcopy -s //PHXX_XXXX.depot \* @ /.

Cheers
Con
Fred Ruffet
Honored Contributor

Re: creating a depot

first you can only copy patches one after others. So you must do a loop on patches.
second point, you must specify @ symbol before destination. So it looks like this :

for patchname in ...
do
swcopy -s $patchname \* @ /tmp/depot
done

where ... stands for the patches list, separated by spaces.

be carefull on where spaces are.

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
lawrenzo_1
Super Advisor

Re: creating a depot

Thanks chaps,

we had this procedure, we were trying to copy a that was already in another depot but did not have the .depot

make sense?

Tahnks again
hello