How to check cpanel rpms works

How to verify Cpanel RPMs work in your server? the resulting script offers 4 basic purposes:
The script creates missing RPMs
Tracks RPMs that are out of date and need to be refreshed
Notes if any RPMs have been unexpectedly altered
Checks if any cPanel managed RPMs are installed that should be uninstalled
Note: Records are supposed altered if:
Their control has changed
Their Mode changes
They receive an MD5 mismatch
They are a symlink, the file points to the illegal path
They are avoiding.
check Cpanel RPMs proposes the possibility to improve these issues by reinstalling the RPM that includes the updated file(s).

To utilize, execute the script using the following format: check_cpanel_rpms [options]

Options

The chart below features a list of options that can be used with check_cpanel_rpms

To utilize these options, execute the script as shown in the Options column. For example to run the –fix option, enter /usr/local/cpanel/scripts/check_cpanel_rpms –fix

Options Description
--fix Show any problems and automatically correct them.
--list-only List altered RPMs and then exit.
--long-list Show in a more easily parsed format the altered RPMs and files.
--notify Send out a notification regarding any altered RPMs. Additionally, it will describe any action that was taken.
--targets Filter RPMs based on provided targets (comma delimited).
--nodir Prevents the directory /var/cpanel/rpm.versions.d from being read.
This variable is only accepted in 11.36.1+

Checks performed

check cpanel rpms runs the rpm -Vv check on all cPanel-managed RPMs. rpm -Vv determines if the files have changed since their installation; configuration and documentation files are ignored in this process. The table below shows the changes detected in the output of rpm -Vv.

Note: If the output indicates that only Mode or mTime have changed, then that file will not be labeled as “changed.”

Check Description
S File Size differs.
M Mode differs (includes permissions and file type).
5 MD5 sum differs.
D Device major/minor number mismatch.
L readLink(2) path mismatch.
U User ownership differs.
G Group ownership differs.
T mTime differs.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Stats and Monitoring Process tool

Mysqlmymonlite Stats and Monitoring process free tool, Bash shell script tool used to gather...

cPanel Game Server Installation

cPGS is a software module that allows you to set up and run a game server. You are even able to...

Attracta SEO Tools Installation

Attracta SEO tool will verify that your website has not been flagged by Google as containing...

Server load alerts shell script

Simple Server load alerts shell script to monitor your server load average, Free Memory and Swap...

Powered by WHMCompleteSolution