yum -y list java* 查看当前java的版本

 

[root@NB ok]# yum -y list java*
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: mirrors.yun-idc.com
 * extras: mirrors.yun-idc.com
 * updates: mirrors.yun-idc.com
Installed Packages
java-1.6.0-openjdk.x86_64                1:1.6.0.35-1.13.7.1.el6_6  @anaconda-CentOS-201508042137.x86_64/6.7
java-1.7.0-openjdk.x86_64                1:1.7.0.79-2.5.5.4.el6     @anaconda-CentOS-201508042137.x86_64/6.7
Available Packages
java-1.5.0-gcj.x86_64                    1.5.0.0-29.1.el6           base        
java-1.5.0-gcj-devel.x86_64              1.5.0.0-29.1.el6           base        
java-1.5.0-gcj-javadoc.x86_64            1.5.0.0-29.1.el6           base        
java-1.5.0-gcj-src.x86_64                1.5.0.0-29.1.el6           base        
java-1.6.0-openjdk.x86_64                1:1.6.0.40-1.13.12.6.el6_8 updates     
java-1.6.0-openjdk-demo.x86_64           1:1.6.0.40-1.13.12.6.el6_8 updates     
java-1.6.0-openjdk-devel.x86_64          1:1.6.0.40-1.13.12.6.el6_8 updates     
java-1.6.0-openjdk-javadoc.x86_64        1:1.6.0.40-1.13.12.6.el6_8 updates     
java-1.6.0-openjdk-src.x86_64            1:1.6.0.40-1.13.12.6.el6_8 updates     
java-1.7.0-openjdk.x86_64                1:1.7.0.121-2.6.8.1.el6_8  updates     
java-1.7.0-openjdk-demo.x86_64           1:1.7.0.121-2.6.8.1.el6_8  updates     
java-1.7.0-openjdk-devel.x86_64          1:1.7.0.121-2.6.8.1.el6_8  updates     
java-1.7.0-openjdk-javadoc.noarch        1:1.7.0.121-2.6.8.1.el6_8  updates     
java-1.7.0-openjdk-src.x86_64            1:1.7.0.121-2.6.8.1.el6_8  updates     
java-1.8.0-openjdk.x86_64                1:1.8.0.111-0.b15.el6_8    updates     
java-1.8.0-openjdk-debug.x86_64          1:1.8.0.111-0.b15.el6_8    updates     
java-1.8.0-openjdk-demo.x86_64           1:1.8.0.111-0.b15.el6_8    updates     
java-1.8.0-openjdk-demo-debug.x86_64     1:1.8.0.111-0.b15.el6_8    updates     
java-1.8.0-openjdk-devel.x86_64          1:1.8.0.111-0.b15.el6_8    updates     
java-1.8.0-openjdk-devel-debug.x86_64    1:1.8.0.111-0.b15.el6_8    updates     
java-1.8.0-openjdk-headless.x86_64       1:1.8.0.111-0.b15.el6_8    updates     
java-1.8.0-openjdk-headless-debug.x86_64 1:1.8.0.111-0.b15.el6_8    updates     
java-1.8.0-openjdk-javadoc.noarch        1:1.8.0.111-0.b15.el6_8    updates     
java-1.8.0-openjdk-javadoc-debug.noarch  1:1.8.0.111-0.b15.el6_8    updates     
java-1.8.0-openjdk-src.x86_64            1:1.8.0.111-0.b15.el6_8    updates     
java-1.8.0-openjdk-src-debug.x86_64      1:1.8.0.111-0.b15.el6_8    updates     
java_cup.x86_64                          1:0.10k-5.el6              base        
java_cup-javadoc.x86_64                  1:0.10k-5.el6              base        
java_cup-manual.x86_64                   1:0.10k-5.el6              base        
javacc.x86_64                            4.1-0.5.el6                base        
javacc-demo.x86_64                       4.1-0.5.el6                base        
javacc-manual.x86_64                     4.1-0.5.el6                base        
javassist.noarch                         3.9.0-6.el6                base        
javassist-javadoc.noarch                 3.9.0-6.el6                base  

 

posted @ 2016-11-23 21:33  bass  阅读(935)  评论(0编辑  收藏  举报