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:
1 | nano /etc/yum.conf |
And
1 | nano /etc/dnf/dnf.conf |
And we search for or add a line:
1 | exclude=httpd php mysql |
It is located in the section:
## Exclude following Packages Updates ##
1 | httpd php mysql |
We replace with packages that we want not to be updated.
Related entries:
Adminer - we save and restart the httpd server 8
Fotoxx Photo editor in Ubuntu 20.04 and Linux Mint 20
Error: username does not appear in the file sudoers. This incident will be reported.
dl.winehq.org/wine-builds/winehq.key 7.1 dl.winehq.org/wine-builds/winehq.key 20.04
Installing Java 13 w Ubuntu 18.04 / Ubuntu 19.10