<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Creating a patch bundle? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-patch-bundle/m-p/2423660#M504</link>
    <description>Hi Feldon,&lt;BR /&gt;&lt;BR /&gt;I think this thing removed a character!&lt;BR /&gt;&lt;BR /&gt;The command should be :-&lt;BR /&gt;&lt;BR /&gt;swcopy -s /PHNE_21433.depot * @ /var/spool/sw &lt;BR /&gt;&lt;BR /&gt;or &lt;BR /&gt;&lt;BR /&gt;swcopy -s /PHNE_21433.depot &lt;BACKSLASH&gt;* @ /var/spool/sw &lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;swcopy -s /PHNE_21433.depot PHNE_21433 @ /var/spool/sw &lt;BR /&gt;&lt;BR /&gt;whichever you find better to use.&lt;BR /&gt;&lt;BR /&gt;As for removing stuff, you can use :-&lt;BR /&gt;&lt;BR /&gt;swlist -l product -s /var/spool/sw  &lt;BR /&gt;&lt;BR /&gt;to see what's there, and then&lt;BR /&gt;&lt;BR /&gt;swremove -d &lt;PRODUCT&gt; @ /var/spool/sw&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You might be better just creating a directory somewhere and using that however.&lt;BR /&gt;&lt;BR /&gt;Andy&lt;/PRODUCT&gt;&lt;/BACKSLASH&gt;</description>
    <pubDate>Tue, 23 May 2000 08:15:04 GMT</pubDate>
    <dc:creator>Andy Monks</dc:creator>
    <dc:date>2000-05-23T08:15:04Z</dc:date>
    <item>
      <title>Creating a patch bundle?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-patch-bundle/m-p/2423657#M501</link>
      <description>Assume that I have 2 or more patches downloaded from HP's site to the local system's disk. Installation of each of these patches requires reboot of the system. I want to minimize system down time, so I would like to create a "bundle" from these patches (on disk), so that I can install all of them in a single step and reboot the system once. How can I create such a bundle?</description>
      <pubDate>Tue, 23 May 2000 06:46:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-patch-bundle/m-p/2423657#M501</guid>
      <dc:creator>Fedon Kadifeli</dc:creator>
      <dc:date>2000-05-23T06:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a patch bundle?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-patch-bundle/m-p/2423658#M502</link>
      <description>You don't need to put them in a bundle, just into a depot.&lt;BR /&gt;&lt;BR /&gt;So you could do :-&lt;BR /&gt;&lt;BR /&gt;swcopy -s &lt;PATH of="" the="" .depot="" file=""&gt; * @ /var/spool/sw&lt;BR /&gt;&lt;BR /&gt;Then just repeat that for each .depot file you have.&lt;BR /&gt;&lt;BR /&gt;You don't have to use /var/spool/sw obviously, but it will already exist (although there may be some stuff in there already, so you may want to choose another directory).&lt;BR /&gt;&lt;BR /&gt;If you choose another directory and you require another machine to be able to access it, you'll have to register it with :-&lt;BR /&gt;&lt;BR /&gt;swreg -l depot /var/spool/sw   (or whatever your depot is called).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Then you can installed the patches with in one go.&lt;/PATH&gt;</description>
      <pubDate>Tue, 23 May 2000 07:14:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-patch-bundle/m-p/2423658#M502</guid>
      <dc:creator>Andy Monks</dc:creator>
      <dc:date>2000-05-23T07:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a patch bundle?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-patch-bundle/m-p/2423659#M503</link>
      <description>Thank you for your reply. I guess the command should be something like:&lt;BR /&gt;&lt;BR /&gt;swcopy -s /PHNE_21433.depot * @ /var/spool/sw&lt;BR /&gt;&lt;BR /&gt;Note the "" before "*". After the swinstall'ation, can I simply delete the directories under /var/spool/sw ? For example:&lt;BR /&gt;&lt;BR /&gt;rm /var/spool/sw/PH*&lt;BR /&gt;&lt;BR /&gt;Or is there another command?</description>
      <pubDate>Tue, 23 May 2000 08:07:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-patch-bundle/m-p/2423659#M503</guid>
      <dc:creator>Fedon Kadifeli</dc:creator>
      <dc:date>2000-05-23T08:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a patch bundle?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-patch-bundle/m-p/2423660#M504</link>
      <description>Hi Feldon,&lt;BR /&gt;&lt;BR /&gt;I think this thing removed a character!&lt;BR /&gt;&lt;BR /&gt;The command should be :-&lt;BR /&gt;&lt;BR /&gt;swcopy -s /PHNE_21433.depot * @ /var/spool/sw &lt;BR /&gt;&lt;BR /&gt;or &lt;BR /&gt;&lt;BR /&gt;swcopy -s /PHNE_21433.depot &lt;BACKSLASH&gt;* @ /var/spool/sw &lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;swcopy -s /PHNE_21433.depot PHNE_21433 @ /var/spool/sw &lt;BR /&gt;&lt;BR /&gt;whichever you find better to use.&lt;BR /&gt;&lt;BR /&gt;As for removing stuff, you can use :-&lt;BR /&gt;&lt;BR /&gt;swlist -l product -s /var/spool/sw  &lt;BR /&gt;&lt;BR /&gt;to see what's there, and then&lt;BR /&gt;&lt;BR /&gt;swremove -d &lt;PRODUCT&gt; @ /var/spool/sw&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You might be better just creating a directory somewhere and using that however.&lt;BR /&gt;&lt;BR /&gt;Andy&lt;/PRODUCT&gt;&lt;/BACKSLASH&gt;</description>
      <pubDate>Tue, 23 May 2000 08:15:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-patch-bundle/m-p/2423660#M504</guid>
      <dc:creator>Andy Monks</dc:creator>
      <dc:date>2000-05-23T08:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a patch bundle?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-patch-bundle/m-p/2423661#M505</link>
      <description>Hi Fedon,&lt;BR /&gt;&lt;BR /&gt;I find that putting patches into a bundle helps me separate and better manage patches. Creating bundles also allows me add specific configurations to an Ignite-UX installation, (i.e.),I can selectively add the patch bundle to specific machines. To create a bundle do the following:&lt;BR /&gt;&lt;BR /&gt;1) Creat a Patche Depot: Download your specific patches to a /tmp/todaysPatch directory.&lt;BR /&gt;&lt;BR /&gt;2) Unshar the pathces by issuing the following command;&lt;BR /&gt;   # for i in /tmp/todaysPatch/*&lt;BR /&gt;     do&lt;BR /&gt;     sh $i&lt;BR /&gt;     done&lt;BR /&gt;&lt;BR /&gt;3) Combine all the PH??.depot(s) into one depot:&lt;BR /&gt;   # mkdir /var/opt/ignite/Patches&lt;BR /&gt;   # for i in /tmp/todaysPatch/*&lt;BR /&gt;     do&lt;BR /&gt;     swcopy -s ${PWD}/$i * @ /var/opt/ignite/Patches&lt;BR /&gt;     done&lt;BR /&gt;&lt;BR /&gt;4) Verify the contents of the depot by issuing the following command:&lt;BR /&gt;    # swlist -d @ /var/opt/ignite/Patches&lt;BR /&gt;&lt;BR /&gt;5) Convert the individual patches into a single bundle using the Ignite-UX "make_bundles" command:&lt;BR /&gt;    # make_bundles -B -n TodaysPatches -t "The latest and greates HP-UX 10.20 Patches" /var/opt/ignite/Patches&lt;BR /&gt;&lt;BR /&gt;Where -n is the name you want to assign to your bundle and -t is the description that will be displayed when you run "swlist -l bundle"&lt;BR /&gt;&lt;BR /&gt;6) Verify the bundle was created by issuing the following command;&lt;BR /&gt;    # swlist -d @ /var/opt/ignite/Patches&lt;BR /&gt;&lt;BR /&gt;I hope this helps,&lt;BR /&gt;Bernie</description>
      <pubDate>Wed, 07 Jun 2000 03:29:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-patch-bundle/m-p/2423661#M505</guid>
      <dc:creator>Bernadette Keohan</dc:creator>
      <dc:date>2000-06-07T03:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a patch bundle?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-patch-bundle/m-p/2423662#M506</link>
      <description>Put all your patches into a directory and run this script.  It'll make a depot for you and add all the patched to it (hope it posts OK):&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/csh&lt;BR /&gt;&lt;BR /&gt;#&lt;BR /&gt;# multipatch -  Prepares multiple patches in a depot.&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;if(`whoami` != "root") then&lt;BR /&gt;  echo "You must be root to run this script"&lt;BR /&gt;  exit 1&lt;BR /&gt;endif&lt;BR /&gt;&lt;BR /&gt;@ count = 0&lt;BR /&gt;&lt;BR /&gt;foreach patch ($*)&lt;BR /&gt;  if(! -f $patch) then&lt;BR /&gt;    echo "ERROR: $patch not found.  Aborting"&lt;BR /&gt;#!/usr/bin/csh&lt;BR /&gt;#&lt;BR /&gt;# multipatch -  Prepares multiple patches in a depot.&lt;BR /&gt;#&lt;BR /&gt;if(`whoami` != "root") then&lt;BR /&gt;  echo "You must be root to run this script"&lt;BR /&gt;  exit 1&lt;BR /&gt;endif&lt;BR /&gt;&lt;BR /&gt;@ count = 0&lt;BR /&gt;&lt;BR /&gt;foreach patch ($*)&lt;BR /&gt;  if(! -f $patch) then&lt;BR /&gt;    echo "ERROR: $patch not found.  Aborting"&lt;BR /&gt;    exit 1&lt;BR /&gt;  endif&lt;BR /&gt;end&lt;BR /&gt;&lt;BR /&gt;if(-d /tmp/patch_depot) then&lt;BR /&gt;  echo -n "/tmp/patch_depot exists.  OK to remove? [yN] - "&lt;BR /&gt;  set choice = $&amp;lt;&lt;BR /&gt;  if($choice != "y") exit&lt;BR /&gt;endif&lt;BR /&gt;&lt;BR /&gt;/bin/rm -rf /tmp/patch_depot&lt;BR /&gt;if($status != 0) then&lt;BR /&gt;  echo "Can't delete /tmp/patch_depot.  Aborting."&lt;BR /&gt;  exit 1&lt;BR /&gt;endif&lt;BR /&gt;&lt;BR /&gt;mkdir /tmp/patch_depot&lt;BR /&gt;&lt;BR /&gt;foreach patch ($*)&lt;BR /&gt;  sh $patch&lt;BR /&gt;  if($status != 0) then&lt;BR /&gt;    echo "Error unarchiving patch ${patch}.  Aborting."&lt;BR /&gt;    exit 1&lt;BR /&gt;  endif&lt;BR /&gt;  swcopy -v -s ${cwd}/${patch}.depot $patch @ /tmp/patch_depot&lt;BR /&gt;  if($status != 0) then&lt;BR /&gt;    echo "Error running swcopy for patch ${patch}.  Aborting."&lt;BR /&gt;    exit 1&lt;BR /&gt;  endif&lt;BR /&gt;  @ count++&lt;BR /&gt;end&lt;BR /&gt;&lt;BR /&gt;if($count == 0) then&lt;BR /&gt;  echo "No files processed.  Aborting."&lt;BR /&gt;  exit 1&lt;BR /&gt;endif&lt;BR /&gt;&lt;BR /&gt;swreg -l depot /tmp/patch_depot&lt;BR /&gt;&lt;BR /&gt;echo ""&lt;BR /&gt;echo "`basename $0` completed successfully."&lt;BR /&gt;echo ""&lt;BR /&gt;&lt;BR /&gt;exit 0&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Jun 2000 18:56:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-patch-bundle/m-p/2423662#M506</guid>
      <dc:creator>Tom Danzig</dc:creator>
      <dc:date>2000-06-09T18:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a patch bundle?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-patch-bundle/m-p/2423663#M507</link>
      <description>Oops.  Bad paste in firts response:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/csh &lt;BR /&gt;# &lt;BR /&gt;# multipatch - Prepares multiple patches in a depot. &lt;BR /&gt;# &lt;BR /&gt;if(`whoami` != "root") then &lt;BR /&gt;echo "You must be root to run this script" &lt;BR /&gt;exit 1 &lt;BR /&gt;endif &lt;BR /&gt;&lt;BR /&gt;@ count = 0 &lt;BR /&gt;&lt;BR /&gt;foreach patch ($*) &lt;BR /&gt;if(! -f $patch) then &lt;BR /&gt;echo "ERROR: $patch not found. Aborting" &lt;BR /&gt;exit 1 &lt;BR /&gt;endif &lt;BR /&gt;end &lt;BR /&gt;&lt;BR /&gt;if(-d /tmp/patch_depot) then &lt;BR /&gt;echo -n "/tmp/patch_depot exists. OK to remove? [yN] - " &lt;BR /&gt;set choice = $&amp;lt; &lt;BR /&gt;if($choice != "y") exit &lt;BR /&gt;endif &lt;BR /&gt;&lt;BR /&gt;/bin/rm -rf /tmp/patch_depot &lt;BR /&gt;if($status != 0) then &lt;BR /&gt;echo "Can't delete /tmp/patch_depot. Aborting." &lt;BR /&gt;exit 1 &lt;BR /&gt;endif &lt;BR /&gt;&lt;BR /&gt;mkdir /tmp/patch_depot &lt;BR /&gt;&lt;BR /&gt;foreach patch ($*) &lt;BR /&gt;sh $patch &lt;BR /&gt;if($status != 0) then &lt;BR /&gt;echo "Error unarchiving patch ${patch}. Aborting." &lt;BR /&gt;exit 1 &lt;BR /&gt;endif &lt;BR /&gt;swcopy -v -s ${cwd}/${patch}.depot $patch @ /tmp/patch_depot &lt;BR /&gt;if($status != 0) then &lt;BR /&gt;echo "Error running swcopy for patch ${patch}. Aborting." &lt;BR /&gt;exit 1 &lt;BR /&gt;endif &lt;BR /&gt;@ count++ &lt;BR /&gt;end &lt;BR /&gt;&lt;BR /&gt;if($count == 0) then &lt;BR /&gt;echo "No files processed. Aborting." &lt;BR /&gt;exit 1 &lt;BR /&gt;endif &lt;BR /&gt;&lt;BR /&gt;swreg -l depot /tmp/patch_depot &lt;BR /&gt;&lt;BR /&gt;echo "" &lt;BR /&gt;echo "`basename $0` completed successfully." &lt;BR /&gt;echo "" &lt;BR /&gt;&lt;BR /&gt;exit 0 &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Jun 2000 18:59:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-a-patch-bundle/m-p/2423663#M507</guid>
      <dc:creator>Tom Danzig</dc:creator>
      <dc:date>2000-06-09T18:59:08Z</dc:date>
    </item>
  </channel>
</rss>

