C H A P T E R 4 |
Uninstalling Sun Studio 8 Software |
This chapter describes how to uninstall the Sun Studio 8 software products and associated patches that are installed on your system.
When you successfully install your software, an uninstaller is automatically generated. There are four ways to use the uninstaller to remove the Sun Studio 8 software:
Note - Do not use the pkgrm command to uninstall the software. Use the provided uninstaller. |
If you installed the Sun Studio 8 software on a system that also has Sun Open Net Envirironment (ONE) Studio 8 software installed, then both versions are removed when you run the uninstaller. If you installed the Sun Studio 8 software on a system that has previous compiler collection installations other than Sun ONE Studio 8, then only the Sun Studio 8 software is removed when you use the uninstaller.
You can display an uninstaller either locally or remotely while you are uninstalling Sun 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:
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:
3. On the source computer, set your display to the monitor that is attached to the display computer.
If you use the Bourne shell, type:
If you use the Korn shell, type:
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.
The batch uninstaller removes all Sun Studio 8 software in the silent mode.
1. Become a superuser (root) by typing:
2. Go to the product directory by typing:
Note - If you are uninstalling an Early Access version of the product, the uninstaller directory is /var/sadm/prod/com.sun.s1s8_solaris_edition_ea1. |
3. Start the batch uninstaller by typing:
The batch uninstaller starts and continues with uninstallation.
TABLE 4-1 shows the software names and the uninstaller.class file names that you use to uninstall the Sun Studio 8 software.
Uninstaller class files are located at /var/sadm/prod/com.sun.studio_8 |
To run an uninstaller, follow these steps:
1. If you have not already done so, become a superuser (root) by typing:
2. Go to the uninstaller directory by typing:
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 4-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. |
For example, to remove the Sun Studio 8 software, type:
The Uninstalling window appears. The Welcome page shows you which products will be uninstalled.
5. In the Welcome page, click Next to continue.
The Select Type of Uninstall page appears.
6. In the Select Type of Uninstall page, 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 page, 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 page, click Uninstall Now.
The Uninstalling page appears with a progress indicator. When uninstallation is complete, the Uninstallation Summary page 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:
11. Exit from superuser privileges on the source computer by typing:
To remove software products with the command-line uninstaller, follow these steps:
1. Become a superuser (root) by typing:
2. Go to the product directory by typing:
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 4-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. |
For example, to uninstall the Sun Studio 8 software, type:
The installer shows you which product will be uninstalled. Proceed to Step 5.
The product is uninstalled and the uninstaller exits. Proceed to Step 7.
6. Follow the command-line instructions to complete the uninstallation.
7. 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.
8. (Optional) If you performed the uninstallation using a remote display, on the display computer, disable client access by typing the following:
9. Exit from superuser privileges on the source computer by typing:
You can use the Solaris Product Registry tool to start the uninstaller.
1. Become a superuser (root) by typing:
3. From the Registered Software column, select the software component you want to uninstall.
4. Click the Uninstall button, and the uninstaller opens.
5. Verify that you want to uninstall that component and click OK in the Warning dialog.
6. (Optional) You might be prompted to use the interactive uninstaller. Follow the instructions in the uninstaller wizard to complete the uninstallation.
Copyright © 2004, Sun Microsystems, Inc. All rights reserved.