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.
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.
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.
# 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.
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 |
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. |
# /usr/bin/java uninstall_uninstaller-class-file-name -nodisplay |
# /usr/bin/java uninstall_Compilers -nodisplay |
# /usr/bin/java uninstall_uninstaller-class-file-name -nodisplay -noconsole |
The product is uninstalled and the uninstaller exits. Proceed to Step 10.
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.
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.
11. (Optional) If you performed the uninstallation using a remote display, on the display computer, disable client access by typing the following:
Copyright © 2003, Sun Microsystems, Inc. All rights reserved.