To force the yum
update command to exclude certain packages from being updated, you can use the --exclude
option. This option allows you to specify a list of package names that you want to exclude from the update.
Here's an example of how to use the yum
update command with the --exclude
option to exclude certain packages from being updated:
yum update --exclude=<package1>,<package2>,<package3>
Replace <package1>
, <package2>
, and <package3>
with the names of the packages that you want to exclude from the update. You can specify multiple package names separated by commas.
By default, the yum
update command will update all packages that have newer versions available. The --exclude
option allows you to specify exceptions to this rule and exclude certain packages from being updated.
This option can be useful in situations where you want to prevent a particular package from being updated for some reason, such as if the package has known issues or conflicts with other packages on your system. Consult the yum
manual page and online resources for more information on how to use the --exclude
option and other options that you can use with the yum
update command.