Disabling package updates from Yum in Centos and AlmaLinux

Sometimes it happens that we don't want a package to get updated with the rest after running yum update.
Today, a simple way to block a given package from updating with the rest.

We log into the terminal and edit 2 files:

And

And we search for or add a line:

It is located in the section:

## Exclude following Packages Updates ##

We replace with packages that we want not to be updated.

How useful this post was?

Click on the star, to evaluate it!

Average grade / 5. number of votes:

So far, no votes! Be the first to rate this post.