I have a RHEL 6 system, that I primarily manage through RHN Satellite. Recently I scheduled some updates through Satellite and received a response that the updates had failed. I ssh'd into the system to investigate, and saw this warning when running yum:

Warning: RPMDB altered outside of yum.

How do I fix this warning?

  • 2
    Stop installing and removing packages with the rpm command and stick to yum. – yoonix Apr 12 '17 at 22:44
  • 1
    yum clean all , then next time you use yum warning should not appear or you can try " yum history sync" – arana Apr 12 '17 at 23:24
  • See superuser.com/questions/558200/… about installing RPMs with yum – mwfearnley Jun 12 at 12:30

As noted in the comments and supported by RHEL documentation, another command (that worked in my situation) is:

yum history sync

It will iterate through the installed RPMs and synchronize the rpm & yumdb databases.

As mentioned in the comments, this is a harmless warning that informs you that a package has been installed or removed directly using the rpm command instead of yum. The difference is that yum automatically resolves dependencies for you and keeps the package-management DB on your system up-to-date.

See Execution of yum leads to "Warning: RPMDB altered outside of yum." for an official explanation of the message on the Red Hat Customer Portal.

To get rid of the warning, run:

# yum history new

See also yum or rpm, which contains further explanations and links to Red Hat documentation about both Yum and RPM.

  • 1
    that DID solve the problem, but it also deletes the history. – Steffen Roller Jun 8 at 15:05

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.