How To Install yum-plugin-versionlock.noarch on Amazon Linux 2
Introduction
In this tutorial we learn how to install yum-plugin-versionlock.noarch on Amazon Linux 2.
What is yum-plugin-versionlock.noarch
This plugin takes a set of name/versions for packages and excludes all other versions of those packages (including optionally following obsoletes). This allows you to protect packages from being updated by newer versions, for example.
We can use yum to install yum-plugin-versionlock.noarch on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install yum-plugin-versionlock.noarch.
Install yum-plugin-versionlock.noarch on Amazon Linux 2 Using yum
Update yum database with yum using the following command.
sudo yum makecache --refresh
After updating yum database, We can install yum-plugin-versionlock.noarch using yum by running the following command:
sudo yum -y install yum-plugin-versionlock.noarch
How To Uninstall yum-plugin-versionlock.noarch on Amazon Linux 2
To uninstall only the yum-plugin-versionlock.noarch package we can use the following command:
sudo yum remove yum-plugin-versionlock.noarch
yum-plugin-versionlock.noarch Package Contents on Amazon Linux 2
/etc/yum/pluginconf.d/versionlock.conf
/etc/yum/pluginconf.d/versionlock.list
/usr/lib/yum-plugins/versionlock.py
/usr/lib/yum-plugins/versionlock.pyc
/usr/lib/yum-plugins/versionlock.pyo
/usr/share/doc/yum-plugin-versionlock-1.1.31
/usr/share/doc/yum-plugin-versionlock-1.1.31/COPYING
/usr/share/doc/yum-plugin-versionlock-1.1.31/README
/usr/share/man/man1/yum-versionlock.1.gz
/usr/share/man/man5/yum-versionlock.conf.5.gz
References
Summary
In this tutorial we learn how to install yum-plugin-versionlock.noarch on Amazon Linux 2 using yum.