Uninstall JDK rpm to reinstall
来源:互联网 发布:伊朗人质危机 知乎 编辑:程序博客网 时间:2024/05/17 05:09
What's that packages name?
When you don't know the name of a specific RPM to uninstall you can search for it like so using the command rpm
.
$ rpm -aq | grep -i jdkjava-1.7.0-openjdk-devel-1.7.0.60-2.4.4.0.fc19.x86_64jdk-1.7.0_45-fcs.x86_64java-1.7.0-openjdk-1.7.0.60-2.4.4.0.fc19.x86_64
Based on the above output I have 2 versions of Java installed. The official Oracler version, jdk-1.7.0_45
and the IceTea version aka. Open JDK, java-1.7.0-openjdk-1.7.0.60-2.4.4.0
.
Uninstalling
To uninstall the official version of Java (JDK) you could use the following commands, yum
or rpm
:
yum
$ sudo yum remove jdk[sudo] password for saml: Loaded plugins: auto-update-debuginfo, changelog, langpacks, refresh-packagekitResolving Dependencies--> Running transaction check---> Package jdk.x86_64 2000:1.7.0_45-fcs will be erased--> Finished Dependency ResolutionDependencies Resolved===================================================================================================================== Package Arch Version Repository Size=====================================================================================================================Removing: jdk x86_64 2000:1.7.0_45-fcs installed 193 MTransaction Summary=====================================================================================================================Remove 1 PackageInstalled size: 193 M...
rpm
$ sudo rpm -e jdk
I would recommend always trying to use yum
if you can, it does dependency checks that rpm
does not.
0 0
- Uninstall JDK rpm to reinstall
- use rpm to uninstall software
- Oracle client uninstall and reinstall
- How to uninstall or reinstall supported McAfee consumer products using the McAfee Consumer Products Removal tool (MCPR.exe)
- RPM Command: 15 Examples to Install, Uninstall, Upgrade, Query RPM Packages
- 解决安装photoshop提示”please uninstall and reinstall the product“
- 解决安装photoshop提示”please uninstall and reinstall the product“
- How to Uninstall ADI
- How to uninstall django
- How to Uninstall Xcode
- How to uninstall git
- How to Uninstall Burn4Free
- How to Uninstall Burn4Free
- How to Uninstall Burn4Free
- How to Uninstall Xcode
- How to uninstall CRS
- Ways to uninstall software
- How do I completely uninstall Node.js, and reinstall from beginning (Mac OS X)
- 多边形判断点内外
- kali无线破解实战
- Hibernate基础知识
- Android入门开发之设置Toast与Menu的使用
- 《More Effective C++》读书笔记-技术
- Uninstall JDK rpm to reinstall
- poj 3061(尺取法)
- PHP数据库拓展之PDO使用总结
- 注意用getchar()吃掉换行
- linux下方便的使用有道词典
- ZOJ 1586 QS Network(最小生成树)
- Java-Android
- LAMP环境安装之CentOS(二)
- 党课心得四(杂谈)