How do I upgrade Java using RPM?
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
The recommended method of upgrading Java Runtime Environment (JRE) using RPM is to use the upgrade option.
For example:
- Open new Terminal Window
- Type: rpm -Uvh <package-file>
For example: to upgrade JRE 1.5.0, type: rpm -Uvh jre1.5.0
The vh options are used to provide the user with feedback during the installation process.
Using the upgrade option prevents more than one JRE installation of the same package from being installed on the system at the same time. This is generally preferred behavior. Only users that work in environments that require multiple JRE installations at the same time should have multiple installations.
Note: The package name's for JRE has changed between 1.4.2 and 5.0. This is documented on java.sun.com. Because these packages have different names, using the upgrade option to install JRE 1.5.0 on a machine that has JRE 1.4.2 will not automatically remove the old version. In this case, you should uninstall JRE 1.4.2 after installing JRE 5.0.
|