Some time ago, I was asked to disable updates for the fail2ban application on the server I manage. So when we run yum update , the fail2ban application will not be updated even though the application actually has an update. The method is very easy, here’s How to disable application updates on CentOS7:
1. Open and edit the /etc/yum.conf fileĀ
vim /etc/yum.conf
2. Paste the following configuration and put it at the end, then save
# write down the apps you don't want to update below here exclude=fail2ban fail2ban-firewalld fail2ban-server fail2ban-sendmail
Once saved, yum will read the configuration automatically. So that the next time you run yum update, the applications that we enter in the configuration will not be updated.
Alright, that’s brief information on how to disable application updates on centos7 that I can share, I hope this information is useful. Thank you: D
Read Also :
0 Comments