RHEL Warning: RPMDB altered outside of yum

When I try to update my server using the yum command I’ve been seeing the following error / warning message:

yum install aide
Loaded plugins: rhnplugin
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package aide.x86_64 0:0.14-3.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

 Package                                Arch                                     Version                                        Repository                                              Size
 aide                                   x86_64                                   0.14-3.el6                                     rhel-x86_64-server-6                                   123 k

Transaction Summary
Install       1 Package(s)

Total download size: 123 k
Installed size: 0  
Is this ok [y/N]:

Downloading Packages:
aide-0.14-3.el6.x86_64.rpm                                                                                                                                            | 123 kB     00:00     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
  Installing : aide-0.14-3.el6.x86_64                                                                                                                                                    1/1 

  aide.x86_64 0:0.14-3.el6                                     

How do I fix this problem?

The message means you either used rpm command to install / remove package or other application made changes to the rpm database without using Yum API. This is just warning. To avoid this warning I recommend only using yum command or API to install, query, delete packages. To remove warning simply run
# yum clean all

Why has yum started to display this warning?

While it’s possible that someone has hacked your machine and altered the rpmdb maliciously, it would have to be done poorly to trigger this warning. See this page for more information.

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

🐧 4 comments so far... add one

CategoryList of Unix and Linux commands
Disk space analyzersncdu pydf
File Managementcat
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
4 comments… add one
  • Julian Stortt Jan 16, 2012 @ 10:26

    Cheers for clearing this up. Was getting a bit worried, think it is probably just something misconfigured with one of the packages in the yum update.

  • udosoft Feb 5, 2013 @ 18:10

    it does not delete the warning “Warning: RPMDB altered outside of yum.”

    the right command is:
    yum history new

  • MotherDawg Oct 13, 2015 @ 15:10

    ??? What ???
    ” yum history new ” …uhmmm …please hold for a minute… No NOT at ALL!

    That command start a new history file.
    So all your previous history like:

    …goes out the drain. Sure… the problem won’t come back no more… but it ain’t fixed.

    That is the list of what you are doing to your system. With your genius of a command, it won’t be available anymore. You do like swimming in the dark? RighhhhhhhhT…
    Shoots out information, has no freagin clue of what he’s doing. Damn maverick.

    The correct command is ” rpm –rebuilddb “.
    Then run ” yum update “.

  • MotherDawg Jan 7, 2016 @ 23:27

    I must have had a bad night when I wrote that… My apologies to udosoft and too all who end up reading it.
    But it is an RPM problem. Not a YUM problem.

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