Product SiteDocumentation Site

4.3.3. Prevent a Package from Being Updated

This is optional, and we recommend it for advanced users.
By default, yum installs the latest version of packages. You can change yum to not update certain packages, even when a newer version is available.

Warning

Avoid using this plugin unless absolutely necessary. You may cause yum to not install an important security update, and leave your computer vulnerable to attack.
If you want yum to install packages from a specific repository, even when they are available from another repository, see Section 4.3.2, “Set Repository Priorities” for more appropriate instructions.
  1. Install the yum-plugin-versionlock package.
  2. Use a text editor or the cat or less command to verify that /etc/yum/pluginconf.d/versionlock.conf exists, and contains the following text: enabled = 1 If you want to stop using the plugin, you can edit this file so it contains enabled = 0.
  3. Add the list of packages which you do not want to update to /etc/yum/pluginconf.d/versionlock.list. Each package should go on its own line. For example:
    jack-audio-connect-kit-1.9.4
    qjackctl-0.3.6