To prevent a particular package, such as `cloudlinux-release`, from being updated via YUM, you can adjust the `/etc/yum.conf` file. By adding the package to the existing `exclude` line, you effectively disable its updates.
To implement this, edit the `/etc/yum.conf` file and append `cloudlinux-release` to the `exclude` line, as shown below:
[main]
exclude=bind-chroot dovecot* exim* filesystem nsd* p0f php* proftpd* pure-ftpd* cloudlinux-release
tolerant=1
# ... (retain other configurations)
Save the changes after modifying the file.
This alteration ensures that whenever you execute `yum update`, the `cloudlinux-release` package remains unaffected. It's crucial to monitor configuration files regularly to align them with your system's requirements and security policies.
After adjusting the YUM configuration, update the YUM cache using the following commands:
yum clean all
yum makecache
This step ensures that your system possesses the latest repository information, and the modifications made to the configuration are fully implemented.