exclude package in yum

You may want to occasionally skip a package when using the yum package manager. To do this you can use the “–exclude” option in the yum command. Below is an example of how to skip kernel updates

yum update --exclude=kernel*

Notice that the wildcard is available. In the command above, every package on your system may be updated, with the exception of the kernel. This is particularly handy if you are concerned about sensitive systems and don’t want to update this package.

Yum provides a flexible means to add, remove, and update packages. Using the exclude command can save you some time and headache when cautiously performing updates.

Be the first to comment

Leave a Reply