C H A P T E R  3

Uninstalling Sun ONE Studio 8 Software

This chapter describes how to uninstall the Sun ONE Studio 8 software products and associated patches that are installed on your system.

When you successfully install your software, an uninstaller is automatically generated for each product. There are two ways to use this uninstaller to remove the Sun ONE Studio 8 software:



Note - Do not use the pkgrm command to uninstall the software. Use the provided uninstaller.



TABLE 3-1 shows the software names and the uninstaller.class file names that you use to uninstall the Sun ONE Studio 8 software.

TABLE 3-1 Software Names and Related Uninstaller .class File Names

Software Name

Uninstallation .class File Names

Sun ONE Studio 8 Compilers

uninstall_Compilers.class

Patches installed with
Sun ONE Studio 8 software

uninstall_Solaris_patches.class

Sun Performance Library 8

uninstall_Sun_Performance_Library.class

Source Distribution

uninstall_Source_Distribution.class

Sun ONE Studio 8 Tools

uninstall_Tools.class

Sun ONE Studio 8, Compiler Collection Documentation

uninstall_Documentation.class

Sun ONE Studio 8 Connector to Forte Developer 6 update 2

uninstall_Connector_to_Forte_Developer_6_update_2.class



Choosing Local Display or Remote Display of an Uninstaller

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

To uninstall using the local display, proceed to Using a Graphical User Interface Uninstaller or Using a Command-Line Uninstaller. To uninstall using a remote display, follow the steps in Preparing to Uninstall Using a Remote Display, and then proceed to Using a Graphical User Interface Uninstaller or Using a Command-Line Uninstaller.

Preparing to Uninstall Using a Remote Display

To prepare for uninstallation using a remote display, follow these steps:

1. On the display computer, enable client access to the X server by typing the following at a 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 on which the uninstaller will be running.

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

% rlogin source-computer-name -l rootname
Password: root-password

3. On the source computer, set your display to the monitor that is attached to the display computer.

If you use the C shell, type:

# setenv DISPLAY display-computer-name:0.0

If you use the Bourne shell, type:

# DISPLAY=display-computer-name:0.0
# export DISPLAY

If you use the Korn shell, type:

# export DISPLAY=display-computer-name:0.0

Replace display-computer-name with the output of the /usr/bin/hostname command on the display computer, which is the computer on which the uninstaller will be displayed.

4. Proceed to Using a Graphical User Interface Uninstaller or Using a Command-Line Uninstaller.


Using a Graphical User Interface Uninstaller

To run an uninstaller, follow these steps:

1. If you have not already done so, become a superuser (root) by typing:

% su
Password: root-password

2. Go to the product directory by typing:

# cd /var/sadm/prod/com.sun.s1s8_compiler_collection_fcs

3. Determine the uninstaller .class file name for the software you want to uninstall by typing ls -l to see the list of uninstaller .class file names or referring to TABLE 3-1.

4. To start the uninstaller, type the following, using the appropriate uninstaller .class file name.



Note - Do not include the .class extension of the file name when you type the command.



# /usr/bin/java uninstall_uninstaller-class-file-name

For example, to remove the compilers, type:

# /usr/bin/java uninstall_Compilers

The Uninstalling window appears. The Welcome pane shows you which products will be uninstalled.

5. In the Welcome pane, click Next to continue.

The Select Type of Uninstall pane appears.

6. In the Select Type of Uninstall pane, select the type of uninstallation you want:

If you want to uninstall all of the components of the product, select Full. Click Next and proceed to Step 8.

If you want to uninstall only certain components of the product, select Partial. Click Next and proceed to Step 7.

7. In the Component Selection pane, deselect the components you do not want to uninstall by clicking their checkboxes to remove the check marks. Click Next to continue.

8. In the Ready to Uninstall pane, click Uninstall Now.

The Uninstalling pane appears with a progress indicator. When uninstallation is complete, the Uninstallation Summary pane appears. Click the Details button to view the log files.

9. Click Exit to exit the uninstaller.

10. (Optional) If you performed the uninstallation using a remote display, on the display computer, disable client access by typing the following:

% xhost - source-computer-name

11. Exit from superuser privileges on the source computer by typing:

# exit


Using a Command-Line Uninstaller

To remove software products with the command-line uninstaller, follow these steps:

1. If you have not done so, become a superuser (root) by typing:

% su
Password: root-password

2. Go to the product directory by typing:

# cd /var/sadm/prod/com.sun.s1s8_compiler_collection_fcs

3. To determine the uninstaller .class file name for the software you want to uninstall, type ls -l to see the list of uninstaller .class file names or refer to TABLE 3-1.

4. Type one of the following commands to run the command-line uninstaller, using the appropriate uninstaller .class file name.



Note - Do not include the .class extension of the file name when you type the command.



  • To uninstall a product using its interactive command-line uninstaller, type:
  • # /usr/bin/java uninstall_uninstaller-class-file-name -nodisplay 
    

For example, to uninstall the compilers, type:
# /usr/bin/java uninstall_Compilers -nodisplay 

The installer shows you which product will be uninstalled. Proceed to Step 5.
  • To uninstall the entire product without any additional prompts (in silent mode), type:
  • # /usr/bin/java uninstall_uninstaller-class-file-name -nodisplay -noconsole
    

The product is uninstalled and the uninstaller exits. Proceed to Step 10.

5. Press Enter to continue.

6. If you want to uninstall all components of the product, type 1 and skip to Step 9.

All components are automatically removed. A progress indicator appears.

7. If you want to uninstall only certain components of the product, type 2.

The uninstaller displays a list of the components of the product with checked boxes indicating which components will be uninstalled.

8. If you do not want a component uninstalled, type its number to deselect it for uninstallation. Otherwise, type 0.

The uninstaller displays an updated list showing which components of the product will be uninstalled. Select another component that you want uninstalled and type its number, or type 0 to proceed with uninstallation.

9. The uninstaller lists the components that will be uninstalled and asks you what you would like to do.

  • Type 1 if you want to uninstall the product components now, and proceed to Step 10.
  • Type 2 if you want to start over with the uninstallation process, and go back to Step 3.
  • Type 3 if you want to exit the uninstaller, and proceed to Step 11.

10. When uninstallation is complete, you have the option to view the product's log file by typing its corresponding number. When finished, type the number that corresponds to Done.

The installer exits.

11. (Optional) If you performed the uninstallation using a remote display, on the display computer, disable client access by typing the following:

% xhost - source-computer-name

12. Exit from superuser privileges on the source computer by typing:

# exit