JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
System Administration Guide: Basic Administration     Oracle Solaris 10 8/11 Information Library
search filter icon
search icon

Document Information

About This Book

1.  Oracle Solaris Management Tools (Road Map)

2.  Working With the Solaris Management Console (Tasks)

3.  Working With the Oracle Java Web Console (Tasks)

4.  Managing User Accounts and Groups (Overview)

5.  Managing User Accounts and Groups (Tasks)

6.  Managing Client-Server Support (Overview)

7.  Managing Diskless Clients (Tasks)

8.  Introduction to Shutting Down and Booting a System

9.  Shutting Down and Booting a System (Overview)

10.  Shutting Down a System (Tasks)

11.  Modifying Oracle Solaris Boot Behavior (Tasks)

12.  Booting an Oracle Solaris System (Tasks)

13.  Managing the Oracle Solaris Boot Archives (Tasks)

14.  Troubleshooting Booting an Oracle Solaris System (Tasks)

15.  x86: GRUB Based Booting (Reference)

16.  x86: Booting a System That Does Not Implement GRUB (Tasks)

17.  Working With the Oracle Solaris Auto Registration regadm Command (Tasks)

18.  Managing Services (Overview)

19.  Managing Services (Tasks)

20.  Managing Software (Overview)

21.  Managing Software With Oracle Solaris System Administration Tools (Tasks)

Oracle Solaris Product Registry and Solaris GUI Installation Tools for Managing Software

Adding Software With the Oracle Solaris Installation GUI

How to Install Software With the Oracle Solaris Installation GUI Program

Managing Software With the Oracle Solaris Product Registry GUI (Task Map)

How to View Installed or Uninstalled Software Information With the Oracle Solaris Product Registry GUI

How to Install Software With the Oracle Solaris Product Registry GUI

How to Uninstall Software With the Oracle Solaris Product Registry GUI

Managing Software With the Oracle Solaris Product Registry Command-Line Interface (Task Map)

Managing Software With the Oracle Solaris Product Registry Command-Line Interface

How to View Installed or Uninstalled Software Information (prodreg)

How to View Software Attributes (prodreg )

How to Check for Software Dependencies ( prodreg)

How to Identify Damaged Software Products (prodreg)

How to Uninstall Software (prodreg)

How to Uninstall Damaged Software (prodreg )

How to Reinstall Damaged Software Components (prodreg)

22.  Managing Software by Using Oracle Solaris Package Commands (Tasks)

23.  Managing Patches

A.  SMF Services

Index

Managing Software With the Oracle Solaris Product Registry Command-Line Interface

The prodreg command is the command-line interface (CLI) to the Oracle Solaris Product Registry. The prodreg command supports several subcommands that enable you to manage the software on your system.

You can use the prodreg command in a terminal window to perform the following tasks:

For more information on how to manage the Oracle Solaris Product Registry by using the command-line interface, see the prodreg(1M) man page.

How to View Installed or Uninstalled Software Information (prodreg)

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

  1. Open a terminal window.
  2. Browse the Oracle 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

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

    BROWSE #

    When you use the prodreg browse command, the Oracle 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 Oracle 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 Oracle 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 Oracle 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 Oracle Solaris OS in this sample output is the Oracle Solaris 10 system software.

  3. Browse the information for one of the software components that are listed in the Oracle 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 Oracle 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 21-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 21-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 21-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 Oracle 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

How to View Software Attributes (prodreg )

You can view specific software attributes by using the info subcommand of 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 Oracle 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
  3. View the attributes for one of the listed software components.
    % prodreg info -m "name"

    The -mname” command displays the attributes of the software component with the name name.

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

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

% prodreg info -m "Solaris 10 System Software"

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

% prodreg info -n 2

Example 21-6 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. The UUID is the software's unique identifier in the Oracle 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 info -u a01ee8dd-1dd1-11b2-a3f2-0800209a5b6b

How to Check for Software Dependencies ( prodreg)

You can use the prodreg info command to view components that depend on a specific software component. You might want to check dependencies between software products before you uninstall specific components.

  1. Open a terminal window.
  2. Browse the Oracle 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

    Repeat the prodreg browse command until the software component you want to check is displayed. See How to View Installed or Uninstalled Software Information (prodreg) for more information on browsing the Oracle Solaris Product Registry by using the prodreg browse command.

  3. View the dependencies of a specific software component.
    % prodreg info -m "name" -a "Dependent Components"
    -mname

    Displays the attributes of the software component with the name name.

    -a “Dependent Components”

    Displays components that depend on name software by displaying the values of the Dependent Components attribute.

    This command output lists the software components that depend on name software.

Example 21-7 Viewing Components That Depend on Other Software Products (prodreg )

The following example shows how to view the components that depend on the software product that is named ExampleSoft.

% prodreg -m "ExampleSoft" -a "Dependent Components"
Dependent Components:
Name                         UUID                                  #
---------------------------  ------------------------------------  -
ExampleSoftA                 7f49ecvb-1ii2-11b2-a3f1-0800119u7e8e  1

How to Identify Damaged Software Products (prodreg)

If you remove installed software files or packages without using the appropriate uninstaller, you can damage the software on your system. If software is damaged, the software might not function properly. You can use the info subcommand of the prodreg command to help you determine if a software product is damaged.

  1. View the Oracle Solaris Product Registry information on the software you want to check.
    % prodreg browse -m name
  2. Verify that the software component is damaged.
    % prodreg info -u name-UUID -i 1 -d
  3. Identify the packages that form the name-UUID software component.
    % prodreg info -u name-UUID -i 1 -a PKGS

    The output of this command might list more than one package.

  4. Verify that the packages displayed in the previous step are installed on the system by running the pkginfo command for each package.
    % pkginfo component-a-pkg
    % pkginfo component-b-pkg
    .
    .
    .

Example 21-8 Identifying Damaged Software Components (prodreg)

The following example shows how to determine if the ExampleSoft software component is damaged.

% prodreg browse -m Examplesoft
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
4          -     95842091-725a-8501-ef29-0472985982be  1  ExampleSoft
233         .    90209809-9785-b89e-c821-0472985982be  1  Example Doc
234         .    EXSOzzt                               1
235         .    EXSOblob                              1  Example Data

The ExampleSoft child component EXSOzzt does not have an entry in the NAME field. The ExampleSoft software might be damaged. You would use the prodreg info command with the -u, -i, and -d options to determine if the ExampleSoft software is damaged.

% prodreg info -u 95842091-725a-8501-ef29-0472985982be -i 1 -d
 
isDamaged=TRUE

The output isDamaged=TRUE indicates that the ExampleSoft software is damaged. You would use the -a PKGS option of the prodreg info command to identify the ExampleSoft software packages.

% prodreg info -u 95842091-725a-8501-ef29-0472985982be -i 1 -a PKGS 
pkgs: 
EXSOzzt EXSOblob

To verify that the EXSOzzt and EXSOblob packages are installed on the system, you would use the pkginfo command.

% pkginfo EXSOzzt 
ERROR: information for "EXSOzzt" was not found 

% pkginfo EXSOblob
application EXSOblob       Example Data

The output of the pkginfo command indicates that the EXSOzzt package is not installed on the system. Thus, the ExampleSoft software is damaged.

How to Uninstall Software (prodreg)

You can use the uninstall subcommand of the prodreg command to remove software from your system. When you uninstall software by using the prodreg uninstall command, you remove a specified software and all the child components associated with that software. Before you remove software, verify that other software does not depend on the software you want to uninstall. See How to Check for Software Dependencies ( prodreg).

After you uninstall software, you can remove that software and all the child components of that software from the Oracle Solaris Product Registry by using the prodreg unregister -r command.

  1. Become superuser or assume an equivalent role.

    Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.

  2. View the information on the software you want to uninstall.
    # prodreg browse -u name-UUID
  3. Uninstall the software.
    # prodreg uninstall -u name-UUID 
  4. Check the dependencies for the software that you want to uninstall.
    # prodreg info -u name-UUID

    Check the following information in the output of the prodreg info command.

    • Child Components – Lists the software components that are associated with the name software component. When you unregister the name software, you also unregister the child components of name software. If the output of the previous prodreg info command lists any child components, verify that you want to unregister these child components.

    • Required Components – Lists the software components that are required by the name software component. Software components might require other components that are not child components. When you uninstall and unregister a component, only child components are unregistered and uninstalled.

    • Dependent Components – Lists the components that require name software to run. When you unregister the name software, you also unregister the dependent components of name software. If the output of the prodreg info command lists any dependent components, verify that you want to unregister these dependent components.

    In the previous sample output, name software does not have any dependent components.

  5. Check the dependencies of name software's child components.
    # prodreg info -u component-a-UUID -i l -a "Dependent Components"

    The sample output shows that no other software depends on the child components of name software.

  6. Unregister the software and its child components.
    # prodreg unregister -r -u name-UUID -i 1
    -r

    Recursively unregisters software with the unique identifier name-UUID and all the child components of this software.

    -u name-UUID

    Specifies the unique identifier of the software you want to unregister.

    -i 1

    Specifies the instance of the software you want to unregister.

Example 21-9 Uninstalling Software Components (prodreg)

The following example shows how to uninstall ExampleSoft software and all the child components of ExampleSoft software.

# prodreg browse -m "ExampleSoft"
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
1423       -     95842091-725a-8501-ef29-0472985982be  1  ExampleSoft
1436        .    90209809-9785-b89e-c821-0472985982be  1  Example Doc
1437        -    EXSOzzt                               1  Example Data
1462         .   EXSOblob                              1  Example Data

# prodreg uninstall -u 95842091-725a-8501-ef29-0472985982be -i 1

# prodreg info -u 95842091-725a-8501-ef29-0472985982be
Title: ExampleSoft Software
.
.
.
Child Components:
Name                        UUID                                  #
--------------------------  ------------------------------------  -
Example Doc                 90209809-9785-b89e-c821-0472985982be  1
Example Data                EXSOzzt                               1

Required Components:
Name                        UUID                                  #
--------------------------  ------------------------------------  -
Example Doc                 90209809-9785-b89e-c821-0472985982be  1
Example Data                EXSOzzt                               1

# prodreg info -u 90209809-9785-b89e-c821-0472985982be -i 1 -a "Dependent Components"
Dependent Components:
Name                         UUID                                  #
---------------------------  ------------------------------------  -
ExampleSoft                  95842091-725a-8501-ef29-0472985982be  1

# prodreg info -u EXSOzzt -i 1 -a "Dependent Components"
Dependent Components:
Name                         UUID                                  #
---------------------------  ------------------------------------  -
ExampleSoft                  95842091-725a-8501-ef29-0472985982be  1

# prodreg info -u EXSOblob -i 1 -a "Dependent Components"
Dependent Components:
Name                         UUID                                  #
---------------------------  ------------------------------------  -
Example Data                 EXSOzzt                               1

# prodreg unregister -r -u 95842091-725a-8501-ef29-0472985982be -i 1

How to Uninstall Damaged Software (prodreg )

If you try to uninstall a damaged software component by using the prodreg uninstall command, the command might fail. This failure can occur if the uninstaller program for the software component has been removed from the system.

Follow these steps to uninstall a software component with no associated uninstaller program on the system.

  1. Become superuser or assume an equivalent role.

    Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.

  2. View the information on the software you want to uninstall.
    # prodreg browse -m "name"
  3. Uninstall the software.
    # prodreg uninstall -u UUID -i 1
  4. Identify the uninstaller program for the software component.
    # prodreg info -m "name" -a uninstallprogram
  5. Determine if the uninstaller is in the registered location.
    # ls uninstaller-location uninstaller-location
  6. Remove the software from the system in one of the following ways:
    • If you have a system backup available, follow these steps:
      1. Load the uninstaller program from the backup.
      2. Run the uninstaller program from a shell command-line interface such as a terminal window.
    • If you do not have access to the uninstaller program on a backup, follow these steps:
      1. Unregister the software component.
        # prodreg unregister -u UUID -i 1
      2. Remove any remaining registered components that are required by the software you want to remove.
        # pkgrm component-a-UUID

Example 21-10 Uninstalling Damaged Software (prodreg)

The following example shows how to uninstall the damaged ExampleSoft software. In this example, the uninstaller program is not readily available on a system backup.

# prodreg browse -m Examplesoft
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
4          -     95842091-725a-8501-ef29-0472985982be  1  ExampleSoft
233         .    90209809-9785-b89e-c821-0472985982be  1  Example Doc
234         .    EXSOzzt                               1
235         .    EXSOblob                              1  Example Data

# prodreg uninstall -u 95842091-725a-8501-ef29-0472985982be -i 1
The install program requested could not be found

# prodreg info -m "ExampleSoft" -a uninstallprogram
uninstallprogram: /usr/bin/java -mx64m -classpath 
/var/sadm/prod/org.example.ExampleSoft/987573587 uninstall_ExampleSoft

# ls /var/sadm/prod/org.example.ExampleSoft/987573587
/var/sadm/prod/org.example.ExampleSoft/987573587:
No such file or directory

# prodreg unregister -u 95842091-725a-8501-ef29-0472985982be -i 1

# pkgrm EXSOblob

How to Reinstall Damaged Software Components (prodreg)

If other software depends on a damaged software component, you might want to reinstall the damaged component, rather than uninstall the component and the other dependent software. You can use the -f option with the prodreg unregister command to forcibly the unregister the damaged component. Then, you can reinstall the component.

  1. Become superuser or assume an equivalent role.

    Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.

  2. View the information on the software you want to reinstall.
    # prodreg browse -m "name"
  3. Identify the software that depends on the software you want to reinstall.
    # prodreg info -m "name" -a "Dependent Components"
  4. Unregister the software component you want to reinstall.
    # prodreg unregister -f -u UUID
     
  5. Reinstall the software component.
    # /usr/bin/java -cp /usr/installers/installer

    The installer option specifies the name of the installer program for name software.

Example 21-11 Reinstalling Damaged Software Components (prodreg)

The following example shows how to reinstall the damaged software component ComponentSoft without unregistering or uninstalling the dependent component ExampleSoft.

# prodreg browse -m "ComponentSoft"
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
4           .    86758449-554a-6531-fe90-4352678362fe  1  ComponentSoft

# prodreg info -m "ComponentSoft" -a "Dependent Components"
Dependent Components:
Name                         UUID                                  #
---------------------------  ------------------------------------  -
ExampleSoft                  95842091-725a-8501-ef29-0472985982be  1

# prodreg unregister -f -u 86758449-554a-6531-fe90-4352678362fe -i 1

# /usr/bin/java -cp /usr/installers/org.example.componentsoft