When I run ‘yum install package‘ or ‘yum update‘ commands the yum command works normally until Running Transaction Test and hangs until the yum process is killed manually using the kill command. How do I fix this problem under CentOS Linux 5.x AMD64 running on HP server?

This error indicates that other duplicate yum processes running on the system or older yum process causing problem. To fix this problem either reboot the server or type the following commands:
# /bin/rm /var/lib/rpm/__db.*
# cd /var/cache/yum
# /bin/rm -rf *
# yum clean all
# yum update

If you still get the same problem just reboot the server.


🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 5 comments so far... add one


CategoryList of Unix and Linux commands
Disk space analyzersdf ncdu pydf
File Managementcat cp mkdir tree
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
5 comments… add one
  • zazlox Jul 17, 2011 @ 23:14

    interesting tip . keep it up :)

  • revo Oct 19, 2011 @ 7:16

    excellent hint.. struggled the whole night to find such hint.. worked perfectly

  • Saravanan Arumugam Nov 24, 2011 @ 11:15

    We can use “yum clean dbcache” if DB error throws :)

  • kaisersouse Apr 6, 2012 @ 22:12

    THANK YOU! YUM was giving me fits. This was the only “delete/clean/update” tip that actually worked.

  • vikram Jul 10, 2014 @ 9:09

    Hello,
    /bin/rm /var/lib/rpm/__db.*
    cd /var/cache/yum—–after that what to do …..

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum