- Become root by running su and entering the super-user password.
- Change to the directory in which you want to install. Type:
cd
<directory path name>
For example, to install the software in the/usr/java/
directory, Type:
cd /usr/java
- Uninstall any earlier installations of the Java packages.
rpm -e
<package_name> - Install the package.
rpm -ivh jre-7u7-linux-x64.rpm
To upgrade a package:
rpm -Uvh jre-7u7-linux-x64.rpm
- Delete the .rpm file if you want to save disk space.
- Exit the root shell. No need to reboot.
Link
Wednesday, September 18, 2013
Installing JAVA(JDK) from rpm file in linux
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment