How To Install yum-plugin-local.noarch on Amazon Linux 2

In this tutorial we learn how to install yum-plugin-local.noarch in Amazon Linux 2. yum-plugin-local.noarch is Yum plugin to automatically manage a local repo. of downloaded

Introduction

In this tutorial we learn how to install yum-plugin-local.noarch on Amazon Linux 2.

What is yum-plugin-local.noarch

When this plugin is installed it will automatically copy all downloaded packages to a repository on the local filesystem, and (re)build that repository. This means that anything you’ve downloaded will always exist, even if the original repo. removes it (and can thus. be reinstalled/downgraded/etc.).

We can use yum to install yum-plugin-local.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-local.noarch.

Install yum-plugin-local.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-local.noarch using yum by running the following command:

sudo yum -y install yum-plugin-local.noarch

How To Uninstall yum-plugin-local.noarch on Amazon Linux 2

To uninstall only the yum-plugin-local.noarch package we can use the following command:

sudo yum remove yum-plugin-local.noarch

yum-plugin-local.noarch Package Contents on Amazon Linux 2

/etc/yum.repos.d/_local.repo
/etc/yum/pluginconf.d/local.conf
/usr/lib/yum-plugins/local.py
/usr/lib/yum-plugins/local.pyc
/usr/lib/yum-plugins/local.pyo
/usr/share/doc/yum-plugin-local-1.1.31
/usr/share/doc/yum-plugin-local-1.1.31/COPYING

References

Summary

In this tutorial we learn how to install yum-plugin-local.noarch on Amazon Linux 2 using yum.