日常给HPUX打补丁或者建软件仓库是非常有需要把多个depot包打成一个大包的,否则打一个补丁重启一次的做法,绝对是在浪费生命。

1. Obtain the set of patches you want to install in your depot. 


2. Unshar the patches: 

# for i in PH* 

do 

sh $i 

done 

3. Make depot dir 

# mkdir /tmp/patch_depot 

4. Combine all the separate .depot files into one depot. 

# for i in PH*depot 

do 

swcopy -x enforce_dependencies=false -s ${PWD}/$i \* @ /tmp/patch_depot

done 

5. Verify the contents of the depot: 

# swlist -d @ /tmp/patch_depot 
09-26 19:28