This guide covers how to rebuild a corrupted RPM database using WHM and SSH. Corruption can occur due to crashes during RPM or YUM updates, often caused by disk issues or resource limits. A broken RPM database affects tools like YUM and EasyApache4, so cPanel & WHM try to auto-fix it during updates—but sometimes, manual repair is needed.
A) To rebuild an RPM database using WHM, follow the steps:
- Log in to WHM.
- Choose the “Software” option from the left-hand side of the screen and click on the “Rebuild RPM Database” option.
- Click on the “Proceed” button.
- If your rpm database has been corrupt, an attempt will be made to reconstruct it.
- This process could take one to thirty minutes, depending on how quickly the machine works.
B) To rebuild an RPM database using the command line:
- Log in to SSH as a root user.
- Run the below command:
/scripts/find_and_fix_rpm_issues
Hope you understood how to rebuild an RPM database using WHM and SSH. For any difficulty, reach out to our eukhost’s support specialists.