Page tree
Skip to end of metadata
Go to start of metadata

This document is for a previous release of cPanel & WHM. To view our latest documentation, visit our Home page.

For cPanel & WHM 11.46


If you do not want specific files to update, we recommend that you do not set cPanel-distributed files to immutable. This action will cause a variety of problems. Instead, enter the paths for those files in the /etc/cpanelsync.exclude file.


Each entry in the /etc/cpanelsync.exclude file must use an absolute path, with each path on its own line.

For example, you may wish to prevent an update to the following files:


You would then use the following commands to add the files' path to the /etc/cpanelsync.exclude file:

echo "/usr/local/cpanel/scripts/pkgacct" >> /etc/cpanelsync.exclude
echo "/usr/local/cpanel/Cpanel/" >> /etc/cpanelsync.exclude


This method only prevents an update from the cpanelsync utility. This method does not prevent updates that occur at application runtime. You cannot use the cpanelsync.exclude file to prevent modifications to configuration files, datastores, or similar types of files. 


To determine whether an RPM manages a particular file, run the following command: 

rpm -qf /path/to/file