Yum

How to keep a package from updating?

Use the yum plugin yum-versionlock

To install the plugin: sudo yum install yum-versionlock

To keep a package from updating: sudo yum versionlock add <package>

How to re-enable a package to be updated?

List the packages that are currently being holded: sudo yum versionlock list

Copy the line that you want to delete: sudo yum versionlock delete '<copiedLine>'

Example:

Pratical example with wazuh agent

Found errors? Think you can improve this documentation? Simply click the Edit link at the top of the page, and then the icon on Github to make your changes.