Sun Studio 12 Quick Installation

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 Sun Studio 12 Quick Installation (English, Japanese, Simplified Chinese). Otherwise, follow the installation instructions in this chapter.

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 installation directory.

  3. Start the uninstaller by typing:


    java -cp . uninstall_Sun_Studio_12 &
    
  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 installation directory.

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


    java -cp . uninstall_Sun_Studio_12 -nodisplay
    

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


    java -cp . uninstall_Sun_Studio_12 -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.