CentOS Warning: RPMDB altered outside of yum
Yum is an automatic updater and package installer/remover for rpm-based systems. It automatically computes dependencies and figures out what things should occur in order to safely install, remove, and update rpm packages. Yum also efficiently and easily retrieves information on any package installed or available in a repository to the installer.
When trying to update your server via the yum command you might see the following error / warning message:
Warning: RPMDB altered outside of yum.
# yum install nethogs Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.cogentco.com * epel: mirror.cogentco.com * extras: mirror.vcu.edu * ius: mirror.rackspace.com * updates: centos.aol.com Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package nethogs.x86_64 0:0.8.0-1.el6 set to be updated --> Finished Dependency Resolution Dependencies Resolved==================================================================== Package Arch Version Repository Size ==================================================================== Installing: nethogs x86_64 0.8.0-1.el6 epel 28 k Transaction Summary ==================================================================== Install 1 Package(s) Upgrade 0 Package(s)Total download size: 28 k
Installed size: 53 k
Is this ok [y/N]: y
Downloading Packages:
nethogs-0.8.0-1.el6.x86_64.rpm | 28 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running TransactionWarning: RPMDB altered outside of yum.
Installing : nethogs-0.8.0-1.el6.x86_64 1/1
Installed:
nethogs.x86_64 0:0.8.0-1.el6Complete!
How do you fix this problem?
# yum clean all