How to rebuild an RPM database using WHM and SSH

February 23, 2023 / cPanel & WHM

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:

  1. Log in to WHM.
  2. Choose the “Software” option from the left-hand side of the screen and click on the “Rebuild RPM Database” option.
    Software
  3. Click on the “Proceed” button.
    rebuild RPM database>proceed
  4. If your rpm database has been corrupt, an attempt will be made to reconstruct it.
    RPM
  5. 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:

  1. Log in to SSH as a root user.
  2. 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.

Spread the love