A host crashed near the end of some package update, and now I have an inconsistency I'd like to fix:
rpm -Va
complains about dependency packages would be missing, but those packages are installed!
However when I use rpm -qa package_name
I see the same package being installed multiple times (e.g. three times).
When I try to remove the package using rpm -ve package_name
, rpm
tells me:
error: "package_name" specifies multiple packages:
But note that there is no output after the colon.
So when listing the packages using rpm -qa package_name
I get a list of three identical packages (same release, same version, same architecture).
When I use the full package name for rpm -ve
, I get the message about multiple packages again, but this time the full package names are listed.
How can I remove the duplicate packages in order to reinstall them cleanly?
rpm
version is 4.14.3-150300.46.1.x86_64
of SLES 15 SP3
I had tried a rpm -v --rebuilddb
already:
It did not output anything, nor did it change anything.
inconsistency
(did not exist before) andduplicate
were justified for this question.Inconsistency
does not do. Also "Do not use meta-tags in questions. Here are some tips to help you determine whether a tag is a meta-tag: If the tag can’t work as the only tag on a question, it’s probably a meta-tag."