Victor Victor - 3 months ago 6x
Linux Question

Would installing RPM cause any problems?

Would installing rpm with a server running on putty effect it?I need it so I can start updating java while the server is set up would affect it.


CentOS release 6.6 (Final)
x86_64 x86_64 x86_64 GNU/Linux

Here is the operating info that it shows when you log in to putty.


You can install multiple versions of java and switch it using the alternatives utility. After installing java (using yum or rpm) you can use alternatives to set de default vesion of java that the OS will use.


alternatives --config java


*  1           /usr/lib/jvm/java-1.8.0-openjdk-
 + 2           /usr/lib/jvm/java-1.7.0-openjdk-

The + indicates the current version of java that the OS will use.

If you execute java -version you'll see this output:

java version "1.7.0_101"
OpenJDK Runtime Environment (rhel- u101-b00)
OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)