For cPanel & WHM version 64
/scripts/check_cpanel_rpms script checks all of the installed RPMs on your server for issues. This script also offers you the opportunity to reinstall the affected RPMs in order to repair the issue.
/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 whether there are any RPMs that are unexpectedly altered. The script considers files to be altered if any of the following conditions are true:
- Their ownership has changed.
- Their mode has changed.
- An MD5 sum does not exist.
- They are symlinks, and the file points to the wrong path.
- They are missing.
- Checks whether any installed cPanel-managed RPMs should be uninstalled.
/scripts/check_cpanel_rpms script does not check for or correct file permissions issues.
/scripts/check_cpanel_rpms script does not detect any problems, it will not produce any output.
To run the
/scripts/check_cpanel_rpms script on the command line, use the following format:
You can use the following options with the
|Shows any problems and automatically corrects them.|
|Lists altered RPMs, and then exits.|
|Shows the altered RPMs and files in an easily-parsed format.|
|Sends a notification that lists any altered RPMs and describes any actions that the system performed.|
|Filters RPMs based on provided targets (comma delimited).|
|The script will not read the |
The script will not check for altered files. Instead, it only performs file size validation. This means that if the file is altered, but the file size is identical, the system will not detect the change.
This option applies the
For example, to use the
--fix option, run the following command:
/scripts/check_cpanel_rpms script runs the
rpm -Vv check on all cPanel-managed RPMs. This check determines whether the files have changed since their installation. The system ignores configuration and documentation files during this process.
If the output indicates that only
mTime have changed, the system will not consider that file altered.
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