Creating and installing a software bundle

Using this scenario, you can create a user-defined software bundle and install its contents.

The information in this how-to scenario was tested using specific versions of AIX®. The results you obtain might vary significantly depending on your version and level of AIX.

A user-defined software bundle is a text file ending in .bnd that is located in the /usr/sys/inst.data/user_bundles path. By creating the software bundle file in the /usr/sys/inst.data/user_bundles path, SMIT (System Management Interface Tool) can locate the file and display it in the bundle selection screen.

In this scenario, you will do the following:

  • Create a user-defined software bundle that contains the X11.apps.custom fileset.
  • Install the software bundle
  • Verify the installation of the software bundle was successful

Step 1. Creating a user-defined software bundle

  1. Create a text file with the extension .bnd in the /usr/sys/inst.data/user_bundles path by running the following:
    # vi /usr/sys/inst.data/user_bundles/MyBundle.bnd
  2. Add the software products, packages, or filesets to the bundle file with one entry per line. Add a format-type prefix to each entry. For this example, we are dealing with AIX installp packages, so the format-type prefix is I:. Type the following in the MyBundle.bnd file:

    I:X11.apps.custom

    For more information on installation format types, see Software product packaging.

  3. Save the software bundle file and exit the text editor.

Step 2. Installing the software bundle

  1. Type the following at the command line: # smitty easy_install
  2. Enter the name of the installation device or directory.
  3. From the selection screen, select the name of the user-defined software bundle, MyBundle, you created.
                                Install Software Bundle                             
                                                                                    
    Type or select a value for the entry field.                                     
    Press Enter AFTER making all desired changes.                                   
      +--------------------------------------------------------------------------+  
      |                         Select a Fileset Bundle                          |  
      |                                                                          |  
      | Move cursor to desired item and press Enter.                             |  
      |                                                                          |  
      |   App-Dev                                                                |  
      |   CDE                                                                    |  
      |   GNOME                                                                  |  
      |   KDE                                                                    |  
      |   Media-Defined                                                          |  
      |   MyBundle                                             |  
      |   ...                                                                    |  
      |   ...                                                                    |  
      |                                                                          |  
      | F1=Help                 F2=Refresh              F3=Cancel                |  
      | F8=Image                F10=Exit                Enter=Do                 |  
      | /=Find                  n=Find Next                                      |  
      +--------------------------------------------------------------------------+
  4. Change the values provided in the Install Software Bundle screen as appropriate to your situation. You can change the PREVIEW only? option to yes to preview the installation of your software bundle before you install it. You might also need to accept new license agreements if the software in your bundle has an electronic license.
                                Install Software Bundle                             
                                                                                    
    Type or select values in entry fields.                                          
    Press Enter AFTER making all desired changes.                                   
                                                                                    
                                                            [Entry Fields]          
    * INPUT device / directory for software               /cdrom                    
    * BUNDLE                                              MyBundle                + 
    * SOFTWARE to install                                [all]                    + 
      PREVIEW only? (install operation will NOT occur)    no/yes                  + 
      COMMIT software updates?                            yes                     + 
      SAVE replaced files?                                no                      + 
      AUTOMATICALLY install requisite software?           yes                     + 
      EXTEND file systems if space needed?                yes                     + 
      VERIFY install and check file sizes?                no                      + 
      Include corresponding LANGUAGE filesets?            yes                     + 
      DETAILED output?                                    no                      + 
      Process multiple volumes?                           yes                     + 
      ACCEPT new license agreements?                      no/yes                  + 
      Preview new LICENSE agreements?                     no                      + 
                                                                                    
    F1=Help             F2=Refresh          F3=Cancel           F4=List             
    Esc+5=Reset         F6=Command          F7=Edit             F8=Image            
    F9=Shell            F10=Exit            Enter=Do                                
  5. Press Enter to continue.
  6. Press Enter a second time to confirm your decision and begin the installation of your software bundle.

Step 3. Verify the installation of the software bundle

  • Check the installation summary at the end of the installation output by scrolling to the end of the output. The output indicates whether the installation of your user-defined software bundle was successful. You might see output similar to the following:
    +-----------------------------------------------------------------------------+
                                    Summaries:                                     
    +-----------------------------------------------------------------------------+
                                                                                   
    Installation Summary                                                           
    --------------------                                                           
    Name                        Level           Part        Event       Result     
    -------------------------------------------------------------------------------
    X11.apps.custom 					 7.1.0.0 			  USR 				 APPLY 			SUCCESS 
  • You can also verify the installation at a later time by completing one of the following:
    • Run the following command:
      lslpp -Lb MyBundle
      The output indicates whether the installation of your user-defined software bundle was successful. You might see output similar to the following:
      Fileset                     Level      State  Type       Description
      -------------------------------------------------------------------------------------
      X11.apps.custom  7.1.0.0               C          F      AIXwindows Customizing Tool 
      
      State codes:
       A -- Applied.
       B -- Broken.
       C -- Committed.
       E -- EFIX Locked.
       O -- Obsolete. (partially migrated to newer version)
       ? -- Inconsistent State...Run lppchk -v.
      
      Type codes:
      
       F -- Installp Fileset
       P -- Product
       C -- Component
       T -- Feature
       R -- RPM Package
       E -- Interim Fix
       
    • Complete the following steps in SMIT:
      1. Type the following at a command line: smitty list_installed
      2. Select List Installed Software by Bundle.
      3. With your cursor at the BUNDLE name field, press F4 and select your bundle from the list.
      4. Press Enter. Output is shown similar to that in the preceding option.