查看系统已安装的jdk rpm -qa|grep jdk 我的一键安装包 显示安装的是jdk-1.6.0_22-fcs 然后使用 rpm -e --nodeps jdk-1.6.0_22-fcs 来卸载 下面是卸载与JAVA相关的文件,命令用法与上面相同,如果一次要需要卸载多个文件,直接在空格分隔即可,如:rpm -e --nodeps sun-javadb-javadoc-10.5.3-0.2 sun-javadb-common-10.5.3-0.2 [root@localhost]# rpm -qa|grep jdk [root@localhost]# 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 [root@localhost]# rpm -e --nodeps sun-javadb-core-10.5.3-0.2 [root@localhost]# 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 [root@localhost]# rpm -e --nodeps sun-javadb-demo-10.5.3-0.2 [root@localhost]# 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 [root@localhost]# rpm -e --nodeps sun-javadb-javadoc-10.5.3-0.2 sun-javadb-common-10.5.3-0.2 [root@localhost]# rpm -qa|grep java sun-javadb-docs-10.5.3-0.2 [root@localhost]# rpm -e --nodeps sun-javadb-docs-10.5.3-0.2 至此所有与JAVA相关的文件删除完成。
安装jdk-linux-i586.rpm.bin
chmod u+x j2sdk-1_4_1_02-linux-i586-rpm.bin ./j2sdk-1_4_1_02-linux-i586-rpm.bin