Duplicated RPM (Exim) Can i remove all exim rpms and reinstall?

attiliok

Active Member
Nov 13, 2013
29
0
1
cPanel Access Level
Root Administrator
Hello everybody,
I think this is a simple question.
Here my situation: i have some duplicated packages:

Code:
rpm -q --queryformat "%{name}.%{arch}\n" exim
exim.x86_64
exim.x86_64
So i think i should remove both packages like this

Code:
rpm -ev --allmatches exim
and reinstall it whit

Code:
/usr/local/cpanel/scripts/check_cpanel_rpms --fix
Am I right? Will this break something, or it's safe?

Thanks in advance.
 

cPanelNick

Administrator
Staff member
Mar 9, 2015
3,481
35
208
cPanel Access Level
DataCenter Provider
You can remove both of them with (just in the rpm database, but not the filesystem) by doing the following:

Code:
rpm -e --justdb --nodeps exim-4.80.1-1.cp1136
rpm -e --justdb --nodeps exim-4.80.1-3.cp1136
Then reinstall and everything should be back in sync.

Code:
/usr/local/cpanel/scripts/check_cpanel_rpms --fix
You should open a ticket to investigate how your rpm database was corrupted. This usually happens when the update failed to complete for some reason.