How To Install yum-plugin-tmprepo.noarch on Amazon Linux 2
Introduction
In this tutorial we learn how to install yum-plugin-tmprepo.noarch on Amazon Linux 2.
What is yum-plugin-tmprepo.noarch
This plugin adds the option –tmprepo which takes a url to a .repo file downloads it and enables it for a single run. This plugin tries to ensure that temporary repositories are safe to use, by default, by not allowing gpg checking to be disabled.
We can use yum to install yum-plugin-tmprepo.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-tmprepo.noarch.
Install yum-plugin-tmprepo.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-tmprepo.noarch using yum by running the following command:
sudo yum -y install yum-plugin-tmprepo.noarch
How To Uninstall yum-plugin-tmprepo.noarch on Amazon Linux 2
To uninstall only the yum-plugin-tmprepo.noarch package we can use the following command:
sudo yum remove yum-plugin-tmprepo.noarch
yum-plugin-tmprepo.noarch Package Contents on Amazon Linux 2
/etc/yum/pluginconf.d/tmprepo.conf
/usr/lib/yum-plugins/tmprepo.py
/usr/lib/yum-plugins/tmprepo.pyc
/usr/lib/yum-plugins/tmprepo.pyo
/usr/share/doc/yum-plugin-tmprepo-1.1.31
/usr/share/doc/yum-plugin-tmprepo-1.1.31/COPYING
References
Summary
In this tutorial we learn how to install yum-plugin-tmprepo.noarch on Amazon Linux 2 using yum.