Thursday 9 January 2020

How to Exclude Specify Packages with YUM Command Permanently on CentOS 7




Yum (Yellow Dog Update Modifire) is a tool for RPM package management. Yum can install RPM packages and dependencies are obtained and downloaded automatically.

Add the required package in /etc/yum.conf yum configuration file to exclude these packages permanently while updating packages:

[root@linuxcnf ~]# vi /etc/yum.conf
[main]
.................
exclude=tar* rsync*
[root@linuxcnf ~]#

Done!!! Mentioned packages in the above configuration file are excluded permanently while updating packages and don’t required to specify in yum update command for excluding.

No comments:

Post a Comment