To exclude packages permanently edit the yum.conf file:
vim /etc/yum.confAdd “exclude=package*” E.g:
[main] cachedir=/var/cache/yum/$basearch/$releasever keepcache=0 debuglevel=2 logfile=/var/log/yum.log exclude=php* kernel*
yum update --exclude=PACKAGENAME*