/usr/local/cpanel/scripts/check_cpanel_rpms script scans every installed RedHat® Package Manager (RPM) file on your server for problems. This script can also reinstall any affected RPMs to repair them.
/usr/local/cpanel/scripts/check_cpanel_rpms script performs four basic functions each time that it runs:
- Discovers missing RPMs.
- Tracks RPMs that are out-of-date and need updates.
- Checks for any altered RPMs. Altered RPMs meet any of the following conditions:
- Their ownership has changed.
- Their mode has changed.
- An MD5 checksum does not exist.
- They are symlinks, and the file points to the wrong path.
- They are missing.
- Checks whether to uninstall any cPanel-managed RPMs.
/usr/local/cpanel/scripts/check_cpanel_rpms script does not check for problems with incorrect file permissions.
/usr/local/cpanel/scripts/check_cpanel_rpms script does not detect any problems, it will not produce any output.
To run the
/usr/local/cpanel/scripts/check_cpanel_rpms script on the command line, use the following format:
You can use the following options with the
|Downloads the RPMs and then exits.|
|Shows any problems and automatically corrects them.|
|Lists altered RPMs and then exits.|
|Shows the altered RPMs and files in an easily-parsed format.|
Installs missing RPMs and uninstalls unneeded RPMs. The script will not check for broken RPMs.
Performs a size validation. This option will not report altered RPMs. If the script detects an altered RPM, but the file size is identical, this option will not report the change.
This option applies the
|The script will not read the |
|Sends a notification that lists any altered RPMs. Then, describes any actions that the system performed.|
|Filters RPMs based on provided targets (comma-delimited).|
For example, to use the
--fix option, run the following command:
/usr/local/cpanel/scripts/check_cpanel_rpms script runs the
rpm -Vv check on all cPanel-managed RPMs. This checks for changes in the files since their installation. The script does not check configuration and documentation files.
If the output indicates that only
mTime have changed, the script will not report that as an altered RPM.
The output of the
rpm -Vv check lists the following changes:
|File size differs.|
|Device major or minor number mismatch.|
|User ownership differs.|
|Group ownership differs.|
There is no content with the specified labels