When installing a specific version of DSE or Agent packages, yum automatically installs or upgrades to a later version than specified.
For example users might run the following command:
sudo yum install datastax-agent-5.2.5 --exclude dse-full
but the Agent package version 6.7 will be installed rather than version 5.2.5
As per RedHat Technote 98873 users can restrict yum to install or upgrade a package to a fixed specific version using the versionlock plugin of yum.
To do this:
Install package named
yum-versionlockin RHEL 5).
# yum install yum-plugin-versionlock
/etc/yum/pluginconf.d/versionlock.listwill be created on the system.
To install or lock the version of the DSE/Agent package, add that package name to the
/etc/yum/pluginconf.d/versionlock.listfile. As per previous example:
# yum versionlock datastax-agent-5.2.5
(Alternatively, you can edit the filelist,
- The above configuration will not allow to upgrade the Agent package to version greater than what was installed at the time the locking was performed.
- Yum will attempt to update all packages, while excluding the packages listed in the versionlock file.
To display the list, use:
# yum versionlock list
To discards the list, use:
# yum versionlock clear