Java

Java in Action Downloads Help Center

Help Resources
Search Java Help


If I have two versions of Java on my machine running through RPM, how do I remove one of them?


This article applies to:
  • Platform(s): Sun Java Desktop System ,  Red Hat Linux ,  SUSE Linux
  • Browser(s): Netscape 6.2x ,  Netscape 7 ,  Mozilla 1.4+
  • Java version(s): All JRE Versions

To uninstall a RPM installation, you need to know the package’s full name, version number, and release names. For example, to determine what versions of the Java Runtime Enviornment (JRE) are installed, do the following:
  1. Open new Terminal Window
  2. Type the following command:
    rpm -q jre
  3. This is the sample result returned by the query
    jre-1.5.0-fcs
    jre-1.5.0_04
  4. The result shows that there are two versions installed on the system: JRE 1.5.0 FCS and 1.5.0_04.
  5. If you want to uninstall 1.5.0-fcs, type the following command in the prompt:
    rpm -e jre-1.5.0-fcs

Select Language | Java Wear | Newsletter | About Java Technology | Partner with Us | Developers
Privacy | Terms of Use | Trademarks | License | Disclaimer | Support

Sun Microsystems