C H A P T E R  4

Uninstalling the Sun Studio 11 Software

This chapter describes how to uninstall the Suntrademark Studio 11 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 11 software:

Use the batch uninstaller, which removes all Sun Studio 11 software in silent mode. See Using the Batch Software Uninstaller.



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




Uninstalling When Previous Versions Of Sun Studio Software Are Installed

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


Using the Batch Software Uninstaller

The batch uninstaller removes all Sun Studio 11 software in the silent mode.

1. Become a superuser (root) by typing:


% su
Password: root-password

2. Go to the product directory by typing:


# cd /var/prod/com.sun.studio_11



Note - If you are uninstalling an Early Access version of the product, the uninstaller directory is /var/prod/com.sun.studio_10u1_ean.



3. Start the batch uninstaller by typing:


# ./batch_uninstall_all

The batch uninstaller starts and continues with uninstallation.


Using a Graphical User Interface Uninstaller

TABLE 4-1 shows the software names and the uninstaller.class file names that you use to uninstall the Sun Studio 11 software.


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

Software Name

Uninstallation .class File Names

IDE and tools software

uninstall_Sun_Studio_Software.class

Source Distribution

uninstall_Source_Distribution.class

Documentation

uninstall_Documentation.class

Uninstaller class files are located at /var/prod/com.sun.studio_11


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 uninstaller directory by typing:


# cd /var/prod/com.sun.studio_11

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.




# java uninstall_uninstaller-class-file-name

For example, to remove the Sun Studo 11 software, type:


# java uninstall_Sun_Studio_Software

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:


% 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. Become a superuser (root) by typing:


% su
Password: root-password

2. Go to the product directory by typing:


# cd /var/prod/com.sun.studio_11

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. Also, the commands below assume that your PATH environment variable includes the path to the java command.



For example, to uninstall the Sun Studio 11 software, type:


# java uninstall_Sun_Studio_Software 

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.

5. Press Enter to continue.

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.

The installer exits.

8. (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

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


# exit