System Administration Guide: Basic Administration

How to View Software Attributes (prodreg)

You can view specific software attributes by using the info subcommand to the prodreg command. The prodreg info command displays a variety of information about registered software, including the following items:

  1. Open a terminal window.

  2. Browse the Solaris Product Registry.


    % prodreg browse
        BROWSE # +/-/. UUID                                 # NAME
        ======== ===== ==================================== = ============
        1        -     root                                 1 System 
                                                              Registry
        2         +    a01ee8dd-1dd1-11b2-a3f2-0800209a5b6b 1 Solaris 9 4/03
                                                              System 
                                                              Software
        3         +    8f64eabf-1dd2-11b2-a3f1-0800209a5b6b 1 Unclassified
                                                              Software
  3. View the attributes for one of the software components that are listed in the Solaris Product Registry.

    You can view the attributes for one of the software components that are listed in the output of the prodreg info command in the following ways.


    % prodreg info  -m "name"
    
    -mname

    Displays the attributes of the software component with the name name

  4. Repeat Step 3 for each software component you want to view.

Example—Viewing Software Attributes by Component Name (prodreg)

The following example shows how to view software attributes by referencing the component's name.


% prodreg browse
    BROWSE # +/-/.  UUID                                  #  NAME
    ======== =====  ====================================  =  ============
    1        -      root                                  1  System 
                                                             Registry
    2         +     a01ee8dd-1dd1-11b2-a3f2-0800209a5b6b  1  Solaris  9 4/03
                                                             System 
                                                             Software
    3         +     8f64eabf-1dd2-11b2-a3f1-0800209a5b6b  1  Unclassified
                                                             Software

% prodreg info -m "Solaris 9 4/03 System Software"

Example—Viewing Software Attributes by Component Browse Number (prodreg)

The following example shows how to use the -n option with the prodreg info command to view software attributes by referencing the component's browse number.


% prodreg browse
    BROWSE # +/-/.  UUID                                  #  NAME
    ======== =====  ====================================  =  ============
    1        -      root                                  1  System 
                                                             Registry
    2         +     a01ee8dd-1dd1-11b2-a3f2-0800209a5b6b  1  Solaris 9 4/03 
                                                             System 
                                                             Software
    3         +     8f64eabf-1dd2-11b2-a3f1-0800209a5b6b  1  Unclassified
                                                             Software

% prodreg info -n 2

Example—Viewing Software Attributes by Component UUID (prodreg)

The following example shows how to use the -u option with the prodreg info command to view software attributes by referencing the component's UUID.


% prodreg browse
    BROWSE # +/-/.  UUID                                  #  NAME
    ======== =====  ====================================  =  ============
    1        -      root                                  1  System 
                                                             Registry
    2         +     a01ee8dd-1dd1-11b2-a3f2-0800209a5b6b  1  Solaris 9 4/03 
                                                             System 
                                                             Software
    3         +     8f64eabf-1dd2-11b2-a3f1-0800209a5b6b  1  Unclassified
                                                             Software

% prodreg info -u a01ee8dd-1dd1-11b2-a3f2-0800209a5b6b