How to Exclude Specific Packages from Yum Update
How do I exclude kernel or other packages from getting updated while updating system via yum?
When you perform yum update, it will download the latest version of all the packages that are installed on your system, and upgrade them to the latest version.
You may be in situation where you might not want yum to automatically update one (or more) specific package.
In those situations, use the yum exclude option as shown in the examples below.
How To Exclude Packages from Apt-Get Upgrade
#1. Exclude Packages with Command
You can simply use –exclude command line parameter with yum to exclude specific packages from getting update. You can specify multiple packages as per your requirement.
Eexample : update all packages except kernel and php.
#2. Exclude Packages from Auto Update
To make permanent changes, edit the /etc/yum.conf file and following entries to it:
#3. Exclude 32-bit or 64-bit Packages
Also, you can ignore the specific package architecture. Like you need to exclude 32-bit or 64-bit packages from auto update. Specify them in /etc/yum.conf as below.