Warning RPMDB altered outside of yum

This is just a warning that a package has been installed or removed directly using  rpm  command instead of  yum .

yum update
Loaded plugins: product-id, search-disabled-repos, subscription-manager
  :
  :
  :
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
  :
  :
  :
Complete!

Starting a new transaction history will get rid of this warning message.

yum history new
Loaded plugins: product-id, search-disabled-repos, subscription-manager
history new
#

The next time you run  yum  you shouldn’t see the warning.

yum update
Loaded plugins: product-id, search-disabled-repos, subscription-manager
  :
  :
  :
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  :
  :
  :
Complete!

Note – The  yum history new  command will create a new, empty transaction history database.

The existing transaction history database is not deleted but it will not be accessible as long as the new version of the database exists in  /var/lib/yum/history/ .

If you make plan on making use of the transaction history I’d suggest you just put up with the warning message.

Advertisements
This entry was posted in CentOS, RedHat and tagged . Bookmark the permalink.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.