- [root@roshan:/usr/bin ]#rpm -qa | grep java
- java-1.4.2-gcj-compat-javadoc-1.4.2.0-40jpp.112
- sun-javadb-client-10.6.2-1.1
- sun-javadb-docs-10.6.2-1.1
- sun-javadb-core-10.6.2-1.1
- sun-javadb-javadoc-10.6.2-1.1
- java-1.4.2-gcj-compat-1.4.2.0-40jpp.112
- sun-javadb-demo-10.6.2-1.1
- sun-javadb-common-10.6.2-1.1
- [root@roshan:/usr/bin ]#rpm -e --nodeps java-1.4.2-gcj-compat-1.4.2.0-40jpp.112
- [root@roshan:/usr/bin ]#rpm -e --nodeps java-1.4.2-gcj-compat-javadoc-1.4.2.0-40jpp.112
- export JAVA_HOME=/usr/java/default
- export JRE_HOME=/usr/java/jre1.6.0_29
- export CLASSPATH=$JAVA_HOME/lib:$JRE_HOME/lib
- export PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:usr/java/jre1.6.0_29/bin:/usr/java/default/bin
补充下rpm的常见命令
rpm -ivh 安装软件并显示进度
rpm -Uvh 升级安装并显示进度
rpm -e 删除
rpm -qa 查询安装的软件,一般默认安装的都在其间.
http://www.linuxsir.org/bbs/showthread.php?threadid=47734 详细说明的中文版