System Administration Guide: Basic Administration

ProcedureHow to View Installed or Uninstalled Software Information (prodreg)

You can view information about software in the Solaris Product Registry in a terminal window by using the browse subcommand to the prodreg command.

  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 11 
                                                                 System 
                                                                 Software
        3         +     8f64eabf-1dd2-11b2-a3f1-0800209a5b6b  1  Unclassified
                                                                 Software

    The browse subcommand to the prodreg command displays the following information about registered software.

    BROWSE #

    When you use the prodreg browse command, the Solaris Product Registry generates a browse number for each registered software component. This number can be used as an argument to either the prodreg browse command or the info subcommand to descend the hierarchy of specific registered components.


    Note –

    Browse numbers might change when you reboot or reinstall your system. Do not store browse numbers in scripts or attempt to reuse them between separate login sessions.


    +/-/.

    This field indicates if a software component has additional software component children registered in the Solaris Product Registry.

    The following characters are displayed in this field:

    • + indicates that the software component has additional children components that are not currently displayed.

    • - indicates that the software component has additional children components that are currently displayed.

    • . indicates that the software component does not have children components.

    UUID

    This field lists the software's unique identifier in the Solaris Product Registry.

    #

    This field indicates the instance number of the software component on the system. If the system contains multiple instances of a software component, the Solaris Product Registry assigns a separate instance number to each instance of the component.

    NAME

    This field lists the localized name of the software. The name of the Solaris OS in this sample output is the Solaris 10 system software.

  3. Browse the information for one of the software components that are listed in the Solaris Product Registry.


    % prodreg browse  -m "name"
    

    The -mname” command displays information on the software component with the name name.

  4. If the system contains multiple instances of name software, type the following command to browse the Solaris Product Registry:


    % prodreg browse  -u name-UUID -i instance -n number
    
    -u name-UUID

    Displays information on the name software component with the unique identifier name-UUID.

    -i instance

    Displays information on the name software component with the instance number instance.

    -n number

    Displays software information by referencing the component's browse number number.

  5. Repeat Step 3 and Step 4 for each software component that you want to browse.


Example 19–1 Viewing Software Information by Component Name (prodreg)

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


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

% prodreg browse -m "Solaris 10 System Software"


Example 19–2 Viewing Software Information by Component Browse Number (prodreg)

The following example shows how to use the -n option with the prodreg browse command to view software information 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 10 
                                                             System 
                                                             Software
    3         +     8f64eabf-1dd2-11b2-a3f1-0800209a5b6b  1  Unclassified
                                                             Software

% prodreg browse -n 2


Example 19–3 Viewing Software Information by Component UUID (prodreg)

The following example shows how to use the -u option with the prodreg browse command to view software information by referencing the component's UUID. The UUID is the software's unique identifier in the Solaris Product Registry.


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

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