5.6.6. Exclude when Updating
Sometimes it is necessary to exclude a package during the upgrade process, you may want to keep the current version, later we will show another technique suitable for this particular situation. For now you may use the option --exclude
in the following way:
# su -c "yum update --exclude=ekiga"
This may be necessary because at some point the mirrors used are not updated fast enough and you do not want to or can not wait, or just do not want to or can not use the newer version.
To exclude packages so that they can not be updated permanently by yum, you must modify yum.conf
and add the directive exclude
. You can use a package names list separated by commas.
[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
metadata_expire=1800
installonly_limit=2
exclude=pidgin, amsn, emesene, paquete
You can also exclude packages from specific repositories, adding the exclude in the corresponding .repo file located in /etc/yum.repos.d/nombre_del_repo.repo