在我的yum中有2个包我想摆脱它.当我列出它们出现在输出中的已安装软件包时,当我尝试擦除它们时,yum似乎认为它没问题并继续进行删除.但是,它们永远不会消失,它们会留在列表中,我可以将它们删除42次,但没有任何反应.没有错误消息.我尝试用以下方法重建rpm数据库:
原文链接:https://www.f2er.com/centos/373490.htmlrm -rf /var/lib/rpm/__db.00*
rpm –rebuilddb
这没有帮助.例:
$yum erase eclipse-ecj.x86_64 Loaded plugins: fastestmirror Setting up Remove Process Resolving Dependencies --> Running transaction check ---> Package eclipse-ecj.x86_64 1:3.2.1-19.el5.centos set to be erased --> Finished Dependency Resolution Dependencies Resolved ===================================================================================================== Package Arch Version Repository Size ===================================================================================================== Removing: eclipse-ecj x86_64 1:3.2.1-19.el5.centos installed 23 M Transaction Summary ===================================================================================================== Remove 1 Package(s) Reinstall 0 Package(s) Downgrade 0 Package(s) Is this ok [y/N]: y Downloading Packages: Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Erasing : eclipse-ecj 1/1 Removed: eclipse-ecj.x86_64 1:3.2.1-19.el5.centos Complete! $yum erase eclipse-ecj.x86_64 Loaded plugins: fastestmirror Setting up Remove Process Resolving Dependencies --> Running transaction check ---> Package eclipse-ecj.x86_64 1:3.2.1-19.el5.centos set to be erased --> Finished Dependency Resolution Dependencies Resolved ===================================================================================================== Package Arch Version Repository Size ===================================================================================================== Removing: eclipse-ecj x86_64 1:3.2.1-19.el5.centos installed 23 M Transaction Summary ===================================================================================================== Remove 1 Package(s) Reinstall 0 Package(s) Downgrade 0 Package(s) Is this ok [y/N]:
救命!