Wednesday, September 18, 2013

Installing JAVA(JDK) from rpm file in linux


  1. Become root by running su and entering the super-user password.
  2. 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

  3. Uninstall any earlier installations of the Java packages. rpm -e <package_name>
  4. Install the package.
    rpm -ivh jre-7u7-linux-x64.rpm

    To upgrade a package:
    rpm -Uvh jre-7u7-linux-x64.rpm

  5. Delete the .rpm file if you want to save disk space.
  6. Exit the root shell. No need to reboot.


    Link

No comments: