Tuesday, 8 October 2019

How to Resolve “Warning: RPMDB altered outside of yum” CentOS 7



The message “Warning: RPMDB altered outside of yum” displayed when the yum command is not finished completely or interrupted while running any yum transaction and rpmdb does not completed the rpm database editing.
 The warning message look like the below output:

[root@linuxcnf ~]# yum remove tigervnc-server tigervnc
Loaded plugins: fastestmirror, langpacks
……………………….
Installed size: 1.2 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
  Erasing    : tigervnc-1.8.0-17.el7.x86_64                                                                                                                         1/2
  Erasing    : tigervnc-server-1.8.0-17.el7.x86_64                                                                                                                  2/2
  Verifying  : tigervnc-server-1.8.0-17.el7.x86_64                                                                                                                  1/2
  Verifying  : tigervnc-1.8.0-17.el7.x86_64                                                                                                                         2/2

Removed:
  tigervnc.x86_64 0:1.8.0-17.el7                                                  tigervnc-server.x86_64 0:1.8.0-17.el7

Complete!
[root@linuxcnf ~]#


Solution 1. yum clean: “yum clean all” command can resolve the issue:

[root@linuxcnf ~]# yum clean all
Loaded plugins: fastestmirror, langpacks
Cleaning repos: base epel extras updates
Cleaning up list of fastest mirrors
Other repos take up 3.9 M of disk space (use --verbose for details)
[root@linuxcnf ~]#/

Now install or remove any package using yum command to check the issue.


Solution 2. yum history sync and clean: If the issue is still persist run the following command to sync the yum history:

[root@linuxcnf ~]# yum history sync
Loaded plugins: fastestmirror, langpacks
Syncing rpm/yum DB data for: GConf2-3.2.6-8.el7.x86_64 ... Done.
Syncing rpm/yum DB data for: GeoIP-1.5.0-13.el7.x86_64 ... Done.
Syncing rpm/yum DB data for: ModemManager-1.6.10-3.el7_6.x86_64 ... Done.
…………………………
Syncing rpm/yum DB data for: yum-utils-1.1.31-52.el7.noarch ... Done.
Syncing rpm/yum DB data for: zenity-3.28.1-1.el7.x86_64 ... Done.
Syncing rpm/yum DB data for: zlib-1.2.7-18.el7.x86_64 ... Done.
history sync
[root@linuxcnf ~]#

Run the following command to clean yum:

[root@linuxcnf ~]# yum clean all
Loaded plugins: fastestmirror, langpacks
Cleaning repos: base epel extras updates
Cleaning up list of fastest mirrors
Other repos take up 3.9 M of disk space (use --verbose for details)
[root@linuxcnf ~]#

Now install or remove any package using yum command to check the issue:

[root@linuxcnf ~]# yum install tigervnc-server tigervnc
Loaded plugins: fastestmirror, langpacks
………………………..
Installed size: 1.2 M
Is this ok [y/d/N]: y
Downloading packages:
(1/2): tigervnc-1.8.0-17.el7.x86_64.rpm                                                                                                          | 241 kB  00:00:02
(2/2): tigervnc-server-1.8.0-17.el7.x86_64.rpm                                                                                                   | 215 kB  00:00:03
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                   130 kB/s | 456 kB  00:00:03
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : tigervnc-1.8.0-17.el7.x86_64                                                                                                                         1/2
  Installing : tigervnc-server-1.8.0-17.el7.x86_64                                                                                                                  2/2
  Verifying  : tigervnc-server-1.8.0-17.el7.x86_64                                                                                                                  1/2
  Verifying  : tigervnc-1.8.0-17.el7.x86_64                                                                                                                         2/2

Installed:
  tigervnc.x86_64 0:1.8.0-17.el7                                                  tigervnc-server.x86_64 0:1.8.0-17.el7

Complete!
[root@linuxcnf ~]#

Now the warning resolved and It worked perfectly in my case!!!

No comments:

Post a Comment