Prevent the Update of a Specific Package using YUM

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.

  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

How to fix lveinfo database error of CLN

Run the following command: service lvestats stoptar -zcvf /root/lveinfo_backup_$(date...

How to Install KernelCare on cPanel/WHM server

To install KernelCare, you need to log in with the root user on your cPanel server. Check for...

Switching all cPanel acc/s to "inherit" PHP version

You can change all cPanel users to inherit with this CLI command: for each in `cat...

How to fix issues like PHP selector not available

Some of our clients face the issues like "PHP selector not available" on cPanel accounts of their...

CloudLinux installed, but still showing CentOS

Some of our clients face the issue, that's why we're writing the tutorial to fix it. First of...