Knowledgebase
The find_and_fix_rpm_issues Script Print this Article
Overview:
The /usr/local/cpanel/scripts/find_and_fix_rpm_issues
script detects issues with your server’s RPM database and rebuilds the database if problems exist. This script also detects duplicate cPanel RPMs, removes them, and then re-installs them if necessary. You can use this script if you experience failures when you install RPMs.
-
You must run this script as the
root
user. -
You can also rebuild the RPM database in WHM’s Rebuild RPM Database interface (WHM >> Home >> Software >> Rebuild RPM Database).
-
For a list of common RPM installation issues, read our RPM Installation Failures documentation.
Run the script
To run this script on the command line, use the following format:
/usr/local/cpanel/scripts/find_and_fix_rpm_issues [argument]
Options
Use the following options with this script:
Options | Description | Example |
---|---|---|
--findonly |
Detect and report any RPM problems, but do not make any changes. | --findonly |
--rebuildonly |
Unconditionally rebuild the RPM database. | --rebuildonly |
Example
For example, to check for RPM database issues but not rebuild the database, run the following command:
/usr/local/cpanel/scripts/find_and_fix_rpm_issues --findonly
Output
The output will display any issues that the system finds with the RPM database.
The script’s output could resemble the following example:
|
|
If you pass the --rebuildonly
argument, the script does not return output.
Was this answer helpful?
Related Articles
Overview: The cPanel & WHM installation process adds important scripts to your server’s...
Overview: You can use the /usr/local/cpanel/bin/dbmaptool script to grant ownership of databases...
Overview: This script allows you to manage the task queue system. The task queue system allows...
Overview: The /usr/local/cpanel/scripts/auto-adjust-mysql-limits script updates MySQL®...
Overview: The /usr/local/cpanel/bin/autossl_check script allows you to manually check the SSL...