yum - Is there a way to permanently exclude the kernel from ...
unix.stackexchange.com › questions › 128515yum --exclude=kernel\* update. or: yum -x 'kernel*' update. From yum man page: -x, --exclude=package Exclude a specific package by name or glob from updates on all repositories. Configuration Option: exclude. And if you want to make this persistence, add a line exclude=kernel* to /etc/yum.conf: [main] cachedir=/var/cache/yum/$basearch/$releasever keepcache=0 debuglevel=2 logfile=/var/log/yum.log exactarch=1 obsoletes=1 gpgcheck=1 plugins=1 installonly_limit=5 bugtracker_url=http://bugs.centos.