HP: Creating patch depotsΒΆ

Title:HP: Creating patch depots
Author:Douglas O’Leary <dkoleary@olearycomputers.com>
Description:HP: Creating patch depots
Date created:10/11/2012
Date updated:10/11/2012
Disclaimer:Standard: Use the information that follows at your own risk. If you screw up a system, don’t blame it on me...

So, using HP’s shiny new patch process, you download a whole bunch of patches some of which require a reboot. Being the good admin that you are, you don’t want to reboot the system multiple times. You wat to create a patch depot of all the patches and install them all at one time. How to do that?

  • Download the patches to a filesystem that has sufficient disk space.

  • Extract the patches, copy them to a new depot, then erase the original files:

    for p in PH*
       echo "#-------------------------------------"
       echo "${p}"
       sh ${p}
       swcopy -x enforce_dependencies=false \
          -s ${absolute_wdir}/${p}.depot \* \
       rm ${p}*
  • 99% of the time, this will automatically register the depot as well. You can verify that by: swlist -l depot | grep -i 121011_patch_depot If you see a reply, the depot is registered. Otherwise:

    swreg -l depot ${absolute_pdir}/121011_patch_depot
    • ${absolute_wdir} = the absolute path to the working directory
    • ${absolute_pdir} = the absolute path to the patch depot directory
    • 1210111 is a date stamp (YYMMDD); useful for knowing how old your depots are.