Sun Java Enterprise System 5 Update 1 Installation Guide for UNIX

Installation Fails Due to Files Left Behind During an Uninstallation

Uninstallation can leave behind product component files or packages. In such a case, you might need to manually remove the files or packages before you can reinstall Java ES. The installer reports that the product component is on the host, even though you thought you removed it.

The following might have occurred:

ProcedureTo Clean Up a Partial Installation

  1. Use the following command to determine whether any packages were partially installed.

    Solaris OS: pkginfo -p

    Linux: rpm -qa |grep —I ^sun | xargs rpm -V

    The command output lists any partially installed packages. Using the package names returned, refer to Chapter 5, List of Installable Packages, in Sun Java Enterprise System 5 Update 1 Installation Reference for UNIX to discover what product component the packages belong to.

  2. Remove components or packages.

    • On Solaris 9 or 10, use the prodreg tool.

      The prodreg tool manages the package-based components on your host. You can view product components and their packages, with full information, including interdependencies. You can use the prodreg tool to safely uninstall product components and remove packages. Once you have removed a product component with the prodreg tool, you can reinstall.

    • On Linux, use the rpm -e command.

      To edit the product registry file, open the file /var/opt/sun/install/productregistry. This XML file describes each product component. Each product component description starts with a <compid\> tag and ends with a </compid\> tag. Delete the entire entry for the product component.

  3. Verify that the following directories do not contain Java ES product components or packages:

    /opt

    /etc/opt

    /var/opt

  4. Run the installer again.