How can I install multiple patches, without having to

How can I install multiple patches, without having to reboot more than once?

Updated: 04/10/01

Use swcopy(1M) on each patch to copy the patch into a local depot, then
use swinstall(1M) to install all patches contained in the local depot.

# swcopy -s /tmp/PHCO_12345.depot -x enforce_dependencies=false \* \
@ /tmp/my_patch_depot
# swcopy -s /tmp/PHCO_67890.depot -x enforce_dependencies=false \* \
@ /tmp/my_patch_depot

etc..

# swinstall -s /tmp/my_patch_depot -x autoreboot=true \*

The following script automates the process of creating the depot:

#!/sbin/sh
# cd to the directory where the patches are (PHxx_xxxx) and start
# this script. it will extract the patches one by one and create
# a patch-depot in $PDEPOT.

PATH=/usr/bin:/usr/sbin
PDEPOT=/tmp/my_patch_depot
for PFILE in PH*[0-9]; do
sh $PFILE
rm $PFILE
done
# It's a good habit first reading the PHxx_xxxx.text files before
deleting
# them.
# rm *.text
for PFILE in PH*depot; do
swcopy -s -x enforce_dependencies=false $PWD/$PFILE \* @ $PDEPOT
done
clear
echo
"*********************************************************************"
echo " PLEASE NOTE: The Patch depot $PDEPOT has been created."
echo
"*********************************************************************"
echo "Please start swinstall with $PDEPOT as the source, and don't"
echo "forget to unregister the depot (e.g. swreg -u -l depot $PDEPOT)."



Home
FAQ