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

前端之家收集整理的这篇文章主要介绍了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相关文章