July 25, 2014

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

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 Transaction

Warning: RPMDB altered outside of yum.

Installing : nethogs-0.8.0-1.el6.x86_64 1/1

nethogs.x86_64 0:0.8.0-1.el6


How do you fix this problem?

# yum clean all

+George Rushby

  • http://www.niccolobrogi.com Niccolò Brogi


  • http://www.documentosdoadm.wordpress.com/ Eduardo Mozart de Oliveira

    Worked here! Thanks!
    I think that this happen when we install a package manually with RPM instead using YUM, right?

  • udosoft

    “yum clean all” does not work!
    the right command is
    yum history new