An RPM database problem can prevent package installation or updates on an RPM-based cPanel server. WHM and cPanel’s repair script provide ways to rebuild that database after corruption has been confirmed.

Before repairing

This procedure requires root access and does not apply to Ubuntu, which does not use RPM. Check the installation error first: network failures, unavailable repositories and dependency conflicts are not necessarily database corruption.

Arrange a maintenance window, take an appropriate server recovery backup and ensure that no package installation or update is running. Do not start another repair alongside dnf, yum or a cPanel update.

Check through SSH

Log in as root and run the check-only option:

/usr/local/cpanel/scripts/find_and_fix_rpm_issues --findonly

Review the output before deciding whether a repair is needed.

Repair using one method

In WHM, open Software > Rebuild RPM Database, select Proceed and wait for completion.

Alternatively, use cPanel’s repair script through SSH:

/usr/local/cpanel/scripts/find_and_fix_rpm_issues

Review the result and retry the original package operation. If it still fails, investigate its specific error rather than repeatedly rebuilding the database.