How to exclude specific package from yum update

Atlassian BitBucket server does not work with the latest GIT version.

So I installed a specific version by running this:
yum --enablerepo=ius-archive install git2u-2.15.1-1.ius.centos6

The issue when you run yum update it will update to the latest version.

To prevent that edit yum.conf and add exclude=packagename*

In my case:
vi /etc/yum.conf

# added:
[main]
...
exclude=git2u*

Share on facebook
Share on twitter
Share on linkedin
Share on whatsapp