Thursday, April 4, 2013

Creating a Depot file from a Depot Directory

There are two types of depot's... either a depot directory or a depot file (also called a tape depot).
apa_J4240AA_11.11.depot is a depot file, which is essentially a glorified tar file.  A depot directory is a directory that can contain products, bundles or patches and resides in a directory that has been "registered" and is known to HP-UX's Software Distributor for Unix (SD-UX).

A depot directory is created or has additional items added to it via the swcopy command.  The benefit of a depot directory is that SD-UX allows for only one source "depot" to be specified... so if you want to install multiple kernel patches (that require reboots)... multiple reboots would be required if all you had were individual depot files (one for each patch).  This is where a depot directory is essential.  Another advantage is that if you have registered a depot it is accessible not only locally, but also over the network to be used as a source depot for other servers.  To see what depot directories you have...

swlist -l depot  (Assumes local system)
or
swlist -l depot @ <hostname>  (remote system referenced by hostname).




Once you have created a depot directory... you can use this to create a depot file. To create a depot file from a directory style depot:
 
For our example lets say you have a directory depot /var/spool/sw where there is a product called
J4240AA (Auto Port Aggregation) and you want to create a single file depot (also known as a Tape depot).
swpackage -x media_type=tape -s /var/spool/sw J4240AA @
/tmp/apa_J4240AA_11.11.depot

You will find the depot file in /tmp called apa_J4240AA_11.11.depot.


Bryan Payne on Linkedin  https://www.linkedin.com/in/paynebryan








+Bryan Payne

If you found this information helpful... and you see an advertisement for which you have legitimate interest... every click helps.  Thanks!