刪除CentOS6.5系統自帶的jdk
刪除CentOS6.5系統自帶的jdk
首先查看JDK的版本,Java-version
卸載步驟如下:
[html]view plaincopyprint?
- [root@localhost~]#rpm-qa|grepjdk
- java-1.6.0-openjdk-1.6.0.0-1.50.1.11.5.el6_3.x86_64
- java-1.7.0-openjdk-1.7.0.9-2.3.4.1.el6_3.x86_64
- [root@localhost~]#rpm-qa|grepgcj
- java-1.4.2-gcj-compat-1.4.2.0-40jpp.115
- libgcj-4.1.2-48.el5
- [root@localhost~]#yum-yremovejavajava-1.6.0-openjdk-1.6.0.0-1.50.1.11.5.el6_3.x86_64
- [root@localhost~]#yum-yremovejavajava-1.7.0-openjdk-1.7.0.9-2.3.4.1.el6_3.x86_64
- [root@localhost~]#yum-yremovejavajava-1.4.2-gcj-compat-1.4.2.0-40jpp.115
- [root@localhost~]#yum-yremovelibgcj-4.1.2-48.el5
http://xxxxxx/Linuxjc/1184658.html TechArticle