CentOS(四)安装jdk1.6
2014-12-16 11:53
501 查看
第一、下载及安装
下载地址:http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase6-419409.html
# ***.bin //直接输入bin文件回车进行安装
第二、查看系统已安装的jdk
# find -name "jdk" 按文件名查找
# rpm -qa|grep jdk
jdk-1.6.0_22-fcs
第三、卸载jdk
# rpm -e --nodeps jdk-1.6.0_22-fcs
/var/tmp/rpm-tmp.17570: line 466: /usr/java/jdk1.6.0_22/bin/java: No such file or directory
第四、再次卸载,提示JDK已被删除,系统没有安装jdk
# rpm -e --nodeps jdk-1.6.0_22-fcs
error: package jdk-1.6.0_22-fcs is not installed
下面是卸载与JAVA相关的文件,命令用法与上面相同,如果一次要需要卸载多个文件,直接在空格分隔即可,如:rpm -e --nodeps sun-javadb-javadoc-10.5.3-0.2 sun-javadb-common-10.5.3-0.2
# rpm -qa|grep jdk
# rpm -qa|grep java
sun-javadb-core-10.5.3-0.2
sun-javadb-demo-10.5.3-0.2
sun-javadb-javadoc-10.5.3-0.2
sun-javadb-common-10.5.3-0.2
sun-javadb-docs-10.5.3-0.2
# rpm -e --nodeps sun-javadb-core-10.5.3-0.2
# rpm -qa|grep java
sun-javadb-demo-10.5.3-0.2
sun-javadb-javadoc-10.5.3-0.2
sun-javadb-common-10.5.3-0.2
sun-javadb-docs-10.5.3-0.2
# rpm -e --nodeps sun-javadb-demo-10.5.3-0.2
# rpm -qa|grep java
sun-javadb-javadoc-10.5.3-0.2
sun-javadb-common-10.5.3-0.2
sun-javadb-docs-10.5.3-0.2
# rpm -e --nodeps sun-javadb-javadoc-10.5.3-0.2 sun-javadb-common-10.5.3-0.2
# rpm -qa|grep java
sun-javadb-docs-10.5.3-0.2
# rpm -e --nodeps sun-javadb-docs-10.5.3-0.2
至此所有与JAVA相关的文件删除完成。
下载地址:http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase6-419409.html
# ***.bin //直接输入bin文件回车进行安装
第二、查看系统已安装的jdk
# find -name "jdk" 按文件名查找
# rpm -qa|grep jdk
jdk-1.6.0_22-fcs
第三、卸载jdk
# rpm -e --nodeps jdk-1.6.0_22-fcs
/var/tmp/rpm-tmp.17570: line 466: /usr/java/jdk1.6.0_22/bin/java: No such file or directory
第四、再次卸载,提示JDK已被删除,系统没有安装jdk
# rpm -e --nodeps jdk-1.6.0_22-fcs
error: package jdk-1.6.0_22-fcs is not installed
下面是卸载与JAVA相关的文件,命令用法与上面相同,如果一次要需要卸载多个文件,直接在空格分隔即可,如:rpm -e --nodeps sun-javadb-javadoc-10.5.3-0.2 sun-javadb-common-10.5.3-0.2
# rpm -qa|grep jdk
# rpm -qa|grep java
sun-javadb-core-10.5.3-0.2
sun-javadb-demo-10.5.3-0.2
sun-javadb-javadoc-10.5.3-0.2
sun-javadb-common-10.5.3-0.2
sun-javadb-docs-10.5.3-0.2
# rpm -e --nodeps sun-javadb-core-10.5.3-0.2
# rpm -qa|grep java
sun-javadb-demo-10.5.3-0.2
sun-javadb-javadoc-10.5.3-0.2
sun-javadb-common-10.5.3-0.2
sun-javadb-docs-10.5.3-0.2
# rpm -e --nodeps sun-javadb-demo-10.5.3-0.2
# rpm -qa|grep java
sun-javadb-javadoc-10.5.3-0.2
sun-javadb-common-10.5.3-0.2
sun-javadb-docs-10.5.3-0.2
# rpm -e --nodeps sun-javadb-javadoc-10.5.3-0.2 sun-javadb-common-10.5.3-0.2
# rpm -qa|grep java
sun-javadb-docs-10.5.3-0.2
# rpm -e --nodeps sun-javadb-docs-10.5.3-0.2
至此所有与JAVA相关的文件删除完成。
相关文章推荐
- centos 5.5 下安装 jdk1.6
- Centos 安装 JDK1.6 步骤及常见问题
- CentOS 64位系统JDK1.6、tomcat 6.0、MySQL 5.5安装指南
- centos7.2安装jdk1.6和/etc/profile不生效问题
- CentOS安装jdk 1.6教程
- JDK 1.6在CentOS 5.5上的安装配置
- centos安装了jdk1.6之后却总是显示1.4的版本
- centos 下安装jdk 1.6
- CentOS 6系统下安装 JDK1.6
- Centos 7.2 安装jdk1.6 tomcat6 mysql5.5
- CentOS下JDK1.6和Tomcat的安装
- Linux下CentOS 6.3中安装与配置Jdk 1.6和Tomcat 6.0.32
- Linux下CentOS 6.3中安装与配置Jdk 1.6和Tomcat 6和Mysql5
- centos6.5下安装jdk1.6
- CentOS下Tomcat5.5安装(附带jdk1.6安装)
- (一)配置hadoop-------vm虚拟机中安装CentOS5.5,并且安装和配置jdk1.6
- CentOS 6.3安装配置JDK 1.6 和 Tomcat 7
- CentOS 6.3安装配置JDK 1.6 和 Tomcat 7
- Centos6.5下jdk1.6安装
- CentOS安装配置JDK1.6教程