11-22-2013 01:57 PM - last edited on 11-24-2013 05:23 PM by Lisa198503
i want to create the depot file. while one is the correct method to create the depot file
1. sh PHCO-15220
2. swcopy -s PHCO-15220
P.S. This thread has been movedfrom HP-UX>System Administration to HP-UX > patches. -HP Forum Moderator
11-22-2013 02:45 PM
If it is a patch you have downloaded from HP, then the first thing you need to do is un-shar it, which is your option 1.
# sh PHCO-15220
This should create a PHCO_15220.text and PHCO_15220.depot file.
11-22-2013 04:24 PM - edited 11-22-2013 04:25 PM
>then what is the use of second command swcopy -s PHCO
swcopy is used to copy/create depots. You can use it to combine many depots into one.
>collection of depot is called bundles
No. A collection of depots is just one larger depot.
SD bundles are a collection of SD products. Which is a collection of SD filesets. Which is a collection of files, metadata and control scripts.
11-24-2013 06:01 PM - edited 11-24-2013 06:08 PM
>> i want to create the depot file. while one is the correct method to create the depot file
A depot is useful when you want to easily install software or patches on multiple servers without using NFS or copying the files to each server. It is also useful as a way to collect multiple software items or patches into one depot for a single pass swinstall.
>> 1. sh PHCO-15220
Correct. This will produce several PHCO files, one of which will be a .depot file
>> 2. swcopy -s PHCO-15220
The complete command would be:
# swcopy -x enforce_dependencies=false -s $PWD/PHCO_15220.depot "*" @ /var/tmp/patch1
To see the depot from any HP-UX server, use the command:
# swlist -l depot @ <server>
where <server> is the system where you ran the above swcopy command.
You can now add more patches to this depot by just repeating the swcopy command:
# swcopy -x enforce_dependencies=false -s $PWD/PHKL_1234.depot "*" @ /var/tmp/patch1
And to install these patches on another server:
# swinstall -s <server>:/var/tmp/patch1 PHCO_15220
or to install everything in the depot:
# swinstall -s <server>:/var/tmp/patch1 "*"