- 论坛徽章:
- 0
|
In order to install multiple patches in one go, you will need to create a patches depot as follows :
1. Obtain the set of patches you want to install in your depot.
每个patch都可以从itrc.hp.com上下载。需要注册,不过是免费的。每个patch都有note说明他的fix,和属性。
2. Unshar the patches:
# for i in PH*
do
sh $i
done
NOTE: If you want to unshar one patch without using this script, you can
use the sh(1) command to do so:
sh PHxx_A
sh PHxx_B
sh PHxx_C
3. Combine all the separate .depot files into one depot. To do this, use the
swcopy(1M) command. First, create the directory to store the patches:
# mkdir /tmp/patch_depot
4. Now take the patch .depot files and copy them into the target depot:
# for i in PH*depot
do
swcopy -x enforce_dependencies=false -s ${PWD}/$i \*
@ /tmp/patch_depot
done
NOTE: To copy patches individually, use the following syntax:
swcopy -v -s /tmp/patches/PHxx_A.depot PHxx_A @ /tmp/patch_depot
swcopy -v -s /tmp/patches/PHxx_B.depot PHxx_B @ /tmp/patch_depot
swcopy -v -s /tmp/patches/PHxx_C.depot PHxx_C @ /tmp/patch_depot
5. Verify the contents of the depot:
# swlist -d @ /tmp/patch_depot
Assuming the above example list of patches, you would see the following:
# Initializing... # Contacting target "interop1"... # # Target:
interop1:/var/opt/ignite/Patches #
#
# No Bundle(s) on interop1:/var/opt/ignite/Patches
# Product(s):
#
。。。。。。。。。
。。。。。。。
会列出你bundle进去的patch列表。
In the above output, swlist(1M) states that the depot has "No Bundles".
HP-UX Patches are SD "products".
6. You can now use swinstall(1M) to install these patches in one hit.
Run interactively, and select the patches you want.
# swinstall -s /tmp/patch_depot
NOTE: If you need to copy the depot to a tape use the following command:
swpackage -s /tmp/patch_depot -x target_type=tape -d /dev/rmt/0m "*"
|
|