Search the FAQ Archives

3 - A - B - C - D - E - F - G - H - I - J - K - L - M
N - O - P - Q - R - S - T - U - V - W - X - Y - Z
faqs.org - Internet FAQ Archives

comp.sys.hp.hpux FAQ
Section - 5.12.2.5 How can I install multiple patches, without having to reboot more than once?

( Single Page )
[ Usenet FAQs | Web FAQs | Documents | RFC Index | Zip codes ]


Top Document: comp.sys.hp.hpux FAQ
Previous Document: 5.12.2.4 How do I get rid of old 10.x patches or superseded patches?
Next Document: 5.12.2.6 How do I configure swlist to not display superseded patches?
See reader questions & answers on this topic! - Help others by sharing your knowledge
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)."

User Contributions:

Comment about this article, ask questions, or add new information about this topic:




Top Document: comp.sys.hp.hpux FAQ
Previous Document: 5.12.2.4 How do I get rid of old 10.x patches or superseded patches?
Next Document: 5.12.2.6 How do I configure swlist to not display superseded patches?

Single Page

[ Usenet FAQs | Web FAQs | Documents | RFC Index ]

Send corrections/additions to the FAQ Maintainer:
hpux.faq@gmail.com





Last Update March 27 2014 @ 02:11 PM