For cPanel & WHM 11.46
/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 cPanel-managed RPMs are installed that 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 provide 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 correct 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 will only perform 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 will ignore configuration and documentation files during this process.
If the output indicates that only
mTime have changed, the system will not consider that file to be altered.
The output of the
rpm -Vv check lists the following changes:
|File size differs.|
|Mode differs. (This includes permissions and file type)|
|MD5 sum differs.|
|Device major or minor number mismatch.|
|readLink(2) path mismatch.|
|User ownership differs.|
|Group ownership differs.|