15.6 Managing Software Depots

   

Managing a software depot is an important task for routine system administration. You need to create your own software depot for larger networks to avoid installing the installation media on every machine.

A depot can be created in any directory on disk. The default software depot location is /var/spool/sw . After selecting a directory for the software depot, software components can be added or removed from the depot.

A tape depot can be created using the swpackage command. Only one command can access a tape depot at a time.

Adding Packages to a Depot

A package can be added to a depot using the swcopy command. This command copies into a depot the software that can be installed using the swinstall command at a later stage. The following command copies all products from a tape drive to the default software depot.

 swcopy -s /dev/rmt/0m @ /var/spool/sw 

Removing Packages from a Depot

Software can be removed from a depot using the swremove command. The following command removes all software from the default depot /var/spool/sw .

 swremove -d * @ /var/spool/sw 

Listing Packages in a Depot

Software in a depot can be listed using the swlist command. The following command list contents of the local tape, /dev/rmt/0m .

 swlist -d @ /dev/rmt/0m 

Study Break

Software Management

You have now studied most of the software management concepts and SD-UX commands. Log into your system and use the swlist command to list the software already installed on your system. Put the HP-UX additional software CD-ROM in the drive and mount it on directory /SD_CDROM . If your CD drive device is /dev/dsk/c2t5d0 , the mount command will be:

 mount /dev/dsk/c2t5d0 /SD_CDROM 

On HP-UX version 10.20 and earlier, the system administrator needs to manually create a mount point and then manually mount the CD-ROM before using the swinstall command. On HP-UX 11.00 and later, SD-UX will automatically mount the CD-ROM via the swinstall command. The mount point will be /SD_CDROM .

Now use the swinstall command to see the software components on the CD-ROM. Mark one of the products for installation and install it using options in the Actions menu. After installation is complete, use the swlist command again to make sure that the software is installed. Now use the swremove command to remove this software.


   
Top


HP Certified
HP Certified: HP-UX System Administration
ISBN: 0130183741
EAN: 2147483647
Year: 2000
Pages: 390
Authors: Rafeeq Rehman

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net