The yum in Red Hat Enterprise Linux 5 includes kernel updates by default. To skip installing or updating kernel or other packages while using the yum update utility in Red Hat Enterprise Linux 5, 6, and 7, use following options: Temporary solution via Command line: # yum update --exclude=PACKAGENAME For example, to exclude all kernel related ...
11.11.2013 · Edit /etc/yum.conf file, enter: # vi /etc/yum.conf. Append/modify exclude directive line under [main] section, enter: exclude=kernel*. Save and close the file. Now, you can just run the following without passing the -x or –exclude option to yum command: # yum -y update.
Mar 29, 2017 · # yum update --exclude=kernel* --exclude=php* 2. Exclude Packages from Auto Update. In addition, You can also add entries in /etc/yum.conf to disable packages updates permanently. Using this option, you don’t need to specify each time you run yum update command from prompt. This will also prevent packages from any accidental update.
17.11.2014 · For example, to exclude all the php, httpd and kernel packages to be excluded from the yum update, add the following line: exclude=php* httpd* kernel*. Or, execute the following command: echo "exclude=php* httpd* kernel*" >> /etc/yum.conf. 7. Use Comma Separated List.
Due to application certification and other restrictions in a production environment, it may be preferred to exclude kernel RPM (or other certain RPM) upgrade via yum update. In that case we can use the YUM versionlock plugin to exclude certian packages/rpms from getting updated.
How to make an exclusion list so that anyone running the command "yum update" will not download any kernel patches. This can be done using 2 ways : 1. yum configuration file yum.conf (permanent) 2. Using command line options
yum --exclude=kernel\* update or: yum -x 'kernel*' update From yum man page:-x, --exclude=package Exclude a specific package by name or glob from updates on all repositories. Configuration Option: exclude And if you want to make this persistence, add a line exclude=kernel* to /etc/yum.conf: [main ...
29.03.2017 · 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. For example, below command will update all packages except kernel and php. # yum update --exclude=kernel* --exclude=php*.
18.05.2016 · Also, keep in mind that instead of excluding a whole repository, you can also exclude a specific package: 10 Yum Exclude Examples to Skip Packages for Linux Yum Update (How to Yum Exclude Kernel Updates) 1. Get Repository List. To view all the available repositories on your system, execute yum repolist as shown below.
02.09.2010 · Preventing Yum from Updating the Kernel. However, if you don’t ever want to just blindly have the kernel updated, you can add the following to your /etc/yum.conf file: exclude=kernel*. Or, if you insist on using a vanilla configuration file and control everything via the CLI, use. #yum –exclude=kernel* update.