CentOS yum认为已删除的软件包仍在安装中

在我的yum中有2个包我想摆脱它.当我列出它们出现在输出中的已安装软件包时,当我尝试擦除它们时,yum似乎认为它没问题并继续进行删除.但是,它们永远不会消失,它们会留在列表中,我可以将它们删除42次,但没有任何反应.没有错误消息.我尝试用以下方法重建rpm数据库

rm -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]:

救命!

我从上面的评论中看到postun scriptlet失败了.您可以在不触发脚本的情况下将其删除
rpm -e --noscripts eclipse-ecj

相关文章

Centos下搭建性能监控Spotlight
CentOS 6.3下Strongswan搭建IPSec VPN
在CentOS6.5上安装Skype与QQ
阿里云基于centos6.5主机VPN配置
CentOS 6.3下配置multipah
CentOS安装、配置APR和tomcat-native