Sun Studio 12 Quick Installation (English, Japanese, Simplified Chinese)

Chapter 3 Uninstalling the Sun Studio 12 Software

This chapter includes information on the following:

Uninstalling When Previous Releases of Sun Studio Software Are Installed

If you installed the Sun Studio 12 software on a system that has previous Sun Studio software installations, then only the Sun Studio 12 software is removed when you use the uninstaller.

Determining Which Uninstaller Instructions to Follow

If you find an uninstaller command in the bin directory in the installation directory (for example, in /opt/SUNWspro/bin), follow the uninstallation instructions in this chapter. Otherwise, follow the installation instructions in Sun Studio 12 Quick Installation.

Choosing Local Display or Remote Display of the Uninstaller

You can display an uninstaller either locally or remotely while you are uninstalling Sun Studio 12 software.

ProcedurePreparing for Uninstallation Using a Remote Display

  1. On the display computer, enable client access to the X server by typing the following on the command line:


    xhost + source-computer-name
    

    Replace source-computer-name with the output of the /usr/bin/hostname command entered on the source computer, which is the computer that contains the product CD-ROM or downloaded files.

  2. Log in to the source computer and become a superuser (root).


    rlogin source-computer-name -l rootname
    Password: root-password
    
  3. On the source computer, set the display to the monitor that is attached to the display computer.

    If you use the C shell, type:


    setenv DISPLAY display-computer-name:n.n
    

    If you use the Bourne shell, type:


    DISPLAY=display-computer-name:n.n
    export DISPLAY
    

    If you use the Korn shell, type:


    export DISPLAY=display-computer-name:n.n
    

    Replace display-computer-name with the output of the /usr/bin/hostname entered on the display computer.

Using the Graphical User Interface Uninstaller

You can uninstall any or all of the installed components of the Sun Studio 12 software using the graphical user interface uninstaller.

ProcedureUsing the Graphical User Interface Uninstaller

  1. If you are not currently superuser (root), become superuser by typing:


    su
    Password: root-password
    
  2. Go to the bin directory in the installation directory; for example, /opt/SUNWspro/bin.

  3. Start the uninstaller by typing:


    ./uninstaller &
    
  4. On the Select Type of Uninstall page of the uninstaller, select Full if you want to uninstall all of the Sun Studio 12 software you have installed, or Partial if you want to uninstall only certain components or subcomponents.

  5. If you selected a partial uninstallation, then on the Select Components page, click the checkbox for any component you do not want to uninstall. If you want to uninstall only selected subcomponents of the Sun Studio 12 Compilers and Tools component, click the + icon to expand the component, and click the checkbox for any subcomponent you do not want to uninstall.

  6. On the Ready to Uninstall page, click Uninstall Now.

    The Uninstalling page appears with a progress indicator. When uninstallation is complete, the Uninstallation Summary page appears.

  7. Click Exit to exit the uninstaller.

Using the Command-Line Uninstaller

You can uninstall any or all of the installed components of the Sun Studio 12 software using the command-line uninstaller.

ProcedureUsing the Command-Line Uninstaller

  1. If you are not currently superuser (root), become superuser by typing:


    su
    Password: root-password
    
  2. Go to the bin directory in the installation directory, for example, /opt/SUNWspro/bin.

  3. Start the interactive command-line uninstaller by typing:


    ./uninstaller -nodisplay
    

    You can also start the command-line installer as follows to uninstall the software silently:


    ./uninstaller -nodisplay -noconsole
    
  4. Select Full if you want to uninstall all of the Sun Studio 12 software you have installed, or Partial if you want to uninstall only certain components or subcomponents.

  5. If you selected partial installation, deselect any software component or subcomponent you do not want to uninstall.

  6. Follow the uninstaller instructions to complete the uninstallation.

Uninstalling NetBeans 5.5.1 update 1 Software

NetBeans IDE 5.5.1 update 1 and NetBeans C/C++ Development Pack 5.5.1 update 1 are not uninstalled by the Sun Studio 12 uninstaller. If you wish to uninstall the NetBeans 5.5.1 update 1 software, use the NetBeans uninstallers as follows:

ProcedureUninstalling NetBeans C/C++ Development Pack 5.5.1 update 1

  1. If you are not currently superuser (root), become superuser by typing:


    su
    Password: root-password
    
  2. Go to the cnd1/_uninst directory in the NetBeans 5.5.1 update 1 installation directory; for example, /opt/netbeans-5.5.1/cnd1/_uninst.

  3. Start the uninstaller by typing:


    ./uninstaller &
  4. Follow the instructions in the uninstaller to uninstall NetBeans C/C++ Development Pack 5.5.1 update 1.

ProcedureUninstalling NetBeans IDE 5.5.1 update 1

  1. If you are not currently superuser (root), become superuser by typing:


    su
    Password: root-password
    
  2. Go to the _uninst directory in the NetBeans 5.5.1 update 1 installation directory; for example, /opt/netbeans-5.5.1/_uninst.

  3. Start the uninstaller by typing:


    ./uninstaller &
  4. Follow the instructions in the uninstaller to uninstall NetBeans IDE 5.5.1 update 1.

Removing the Prerequisite Software Repository

When you installed the Sun Studio 12 software, you had the option of copying the prerequisite software to a server for use when running the prepare_system command on client systems that would run the Sun Studio 12 software. If you specified this option, you copied the prerequisite software to /installation_directory/prepare_system_prerequisites; for example, /opt/prepare_system_prerequisites. You can remove the prerequisite software repository by typing:


rm -fR /installation_directory/prepare_system_prerequisites