swpackage

swpackage is used to create a SD/UX package. First a PSF file must be created to tell swpackage how to create the package

e.g. swpackage -v -s product.psf -d target_depot_directory

To preview the results use:

swpackage -p -vv -s product.psf -d target_depot_directory

An example PSF file is listed below:


# Example psf file to be used with SD/UX swpackage

distribution

  layout_version 1.0                                         
                                                             
# Vendor definition                                          
                                                             
vendor                                                       
                                                             
  tag Intronet                                                  
                                                             
  title Intronet Computers Limited                                       
                                                             
end                                                          
                                                             
# Product definition                                         
                                                             
product                                                      
                                                             
  tag S700                                                   
                                                             
  title Medusa Update Software                               
                                                             
  revision 1.0                                               
                                                             
  category software                                          
                                                             
  category_title HP Series 700 Software                      
                                                             
  architecture S700_HPUX_10.0                                
                                                             
  machine_type 9000/7*                                       
                                                             
  directory /                                                
                                                             
  is_locatable false                                         
                                                             
# Subproduct definitions                                     
                                                             
subproduct                                                   
                                                             
  tag Applications                                           
                                                             
  title Application Software                                 
                                                             
  contents application                                       
                                                             
end                                                          
                                                             
subproduct                                                   
                                                             
  tag Diagnostics                                            
                                                             
  title Diagnostic Software                                  
                                                             
  contents diagnostic                                        
                                                             
end                                                          
                                                             
subproduct                                                   
                                                             
  tag Patches                                                
                                                             
  title Patches                                              
                                                             
  contents patch                                             
                                                             
end                                                          
                                                             
# fileset definitions                                        
                                                             
fileset                                                      
                                                             
  tag application                                            
                                                             
  title Application Software                                 
                                                             
# Files                                                      
                                                             
  directory /var/patch/S700/applications=/dev/rmt/2m         
                                                             
  file *                                                     
                                                             
end                                                          
                                                             
# fileset definition (diag)                                  
                                                             
fileset                                                      
                                                             
  tag diagnostic                                             
                                                             
  title Diagnostic Software                                  
                                                             
# Files                                                      
                                                             
  directory /var/patch/S700/diagnostics=/dev/rmt/2m          
                                                             
  file *                                                     
                                                             
end                                                          
                                                             
# fileset definitions (patch)                                
                                                             
fileset                                                      
                                                             
  tag patch                                                  
                                                             
  title Patch Software                                       
                                                             
# Files                                                      
                                                             
  directory /var/patch/S700/patch=/dev/rmt/2m                
                                                             
  file *                                                     
                                                             
end                                                          
                                                             
end                                                          

swpackage can also be used to create a SD/UX tape from an existing package in a depot

e.g. swpackage -s depot -d /dev/rmt/nm -x target_type=tape

After you have created a depot on disk you need to register it using: swreg -l depot

Can use swcopy to copy a depot from tape on to disk. A menu driven option is provided for this.

A depot can also be moved using tar, ftp/rcp , untar and then using swreg -l