yum update
rpm -qa | grep -E '^open[jre|jdk]|j[re|dk]'
java -version
yum remove java-1.6.0-openjdk
yum remove java-1.7.0-openjdk
yum -y list java
yum install java-1.8.0-openjdk.x86_64