$ yum search java | grep 'java-'
...
java-1.6.0-openjdk.x86_64 : OpenJDK Runtime Environment
java-1.6.0-openjdk-demo.x86_64 : OpenJDK Demos
java-1.6.0-openjdk-devel.x86_64 : OpenJDK Development Environment
java-1.6.0-openjdk-javadoc.x86_64 : OpenJDK API Documentation
java-1.6.0-openjdk-src.x86_64 : OpenJDK Source Bundle
java-1.7.0-openjdk.x86_64 : OpenJDK Runtime Environment
java-1.7.0-openjdk-demo.x86_64 : OpenJDK Demos
java-1.7.0-openjdk-devel.x86_64 : OpenJDK Development Environment
java-1.7.0-openjdk-javadoc.noarch : OpenJDK API Documentation
java-1.7.0-openjdk-src.x86_64 : OpenJDK Source Bundle
java-1.8.0-openjdk.x86_64 : OpenJDK Runtime Environment
java-1.8.0-openjdk-debug.x86_64 : OpenJDK Runtime Environment with full debug on
java-1.8.0-openjdk-demo.x86_64 : OpenJDK Demos
java-1.8.0-openjdk-demo-debug.x86_64 : OpenJDK Demos with full debug on
java-1.8.0-openjdk-devel.x86_64 : OpenJDK Development Environment
java-1.8.0-openjdk-devel-debug.x86_64 : OpenJDK Development Environment with
java-1.8.0-openjdk-headless.x86_64 : OpenJDK Runtime Environment
java-1.8.0-openjdk-headless-debug.x86_64 : OpenJDK Runtime Environment with full
java-1.8.0-openjdk-javadoc.noarch : OpenJDK API Documentation
java-1.8.0-openjdk-javadoc-debug.noarch : OpenJDK API Documentation for packages
java-1.8.0-openjdk-src.x86_64 : OpenJDK Source Bundle
java-1.8.0-openjdk-src-debug.x86_64 : OpenJDK Source Bundle for packages with
...
...
...
Now install,
$ sudo yum install java-1.8.0-openjdk.x86_64
...
...
...
Resolving Dependencies
--> Running transaction check
---> Package java-1.8.0-openjdk.x86_64 1:1.8.0.91-1.b14.el6 will be installed
--> Processing Dependency: java-1.8.0-openjdk-headless = 1:1.8.0.91-1.b14.el6 for package: 1:java-1.8.0-openjdk-1.8.0.91-1.b14.el6.x86_64
--> Running transaction check
---> Package java-1.8.0-openjdk-headless.x86_64 1:1.8.0.91-1.b14.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===============================================================================================================================================================
Package Arch Version Repository Size
===============================================================================================================================================================
Installing:
java-1.8.0-openjdk x86_64 1:1.8.0.91-1.b14.el6 base 195 k
Installing for dependencies:
java-1.8.0-openjdk-headless x86_64 1:1.8.0.91-1.b14.el6 base 32 M
Transaction Summary
===============================================================================================================================================================
Install 2 Package(s)
Total download size: 32 M
Installed size: 102 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): java-1.8.0-openjdk-1.8.0.91-1.b14.el6.x86_64.rpm | 195 kB 00:00
(2/2): java-1.8.0-openjdk-headless-1.8.0.91-1.b14.el6.x86_64.rpm | 32 MB 00:04
---------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 6.5 MB/s | 32 MB 00:04
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : 1:java-1.8.0-openjdk-headless-1.8.0.91-1.b14.el6.x86_64 1/2
Installing : 1:java-1.8.0-openjdk-1.8.0.91-1.b14.el6.x86_64 2/2
Verifying : 1:java-1.8.0-openjdk-headless-1.8.0.91-1.b14.el6.x86_64 1/2
Verifying : 1:java-1.8.0-openjdk-1.8.0.91-1.b14.el6.x86_64 2/2
Installed:
java-1.8.0-openjdk.x86_64 1:1.8.0.91-1.b14.el6
Dependency Installed:
java-1.8.0-openjdk-headless.x86_64 1:1.8.0.91-1.b14.el6
Complete!
You will see something like this. I have pasted only few lines from bottom.
Now checking java version in terminal:
$ java -version
openjdk version "1.8.0_91"
OpenJDK Runtime Environment (build 1.8.0_91-b14)
OpenJDK 64-Bit Server VM (build 25.91-b14, mixed mode)
No comments:
Post a Comment