Listing all Software
swlist -l product | more
Checking for Specific Software
swlist -l product | grep
Checking for Specific Patches
swlist -l product| grep PH | more
then search for a specific patch (ie PHNE_XXXXX)
Manually applying patches
Patches can be applied using swinstall, just as depots are installed
swlist -l product | more
Checking for Specific Software
swlist -l product | grep
Checking for Specific Patches
swlist -l product| grep PH | more
then search for a specific patch (ie PHNE_XXXXX)
Manually applying patches
Patches can be applied using swinstall, just as depots are installed
- swlist -l patch -a patch_state PHKL_25475
swcopy -s /tmp/*.depot -\*@/var/spool/sw
Cleaning up after applying patches:
cleanup
cleanup -c n <-- commits patches that have been superseded n number of times. Useful to free up disk space in /var/adm/sw/save.
cleanup -p <-- previews the actual cleanup tasks but does not actually perform the cleanup
check_patches
show_patches
Creating a single patch depot out of multiple individual depots:
From the directory that has all of the individual depots run this command line script:
for i in PH*.depot
do
swcopy -x enforce_dependencies=false -s ${PWD}/$i \* @ /tmp/patch_depot <-- /tmp/patch_depot is the destination directory
done
Cleaning up after applying patches:
cleanup
cleanup -c n <-- commits patches that have been superseded n number of times. Useful to free up disk space in /var/adm/sw/save.
cleanup -p <-- previews the actual cleanup tasks but does not actually perform the cleanup
check_patches
show_patches
Creating a single patch depot out of multiple individual depots:
From the directory that has all of the individual depots run this command line script:
for i in PH*.depot
do
swcopy -x enforce_dependencies=false -s ${PWD}/$i \* @ /tmp/patch_depot <-- /tmp/patch_depot is the destination directory
done
Page 8
Page 6
Find HP-UX Overview and Command Summary All pages
No comments