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

In this tutorial we learn how to install yum-plugin-keys.noarch in Amazon Linux 2. yum-plugin-keys.noarch is Yum plugin to deal with signing keys

Introduction

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

What is yum-plugin-keys.noarch

This plugin adds the commands keys, keys-info, keys-data and keys-remove. They allow you to query and remove signing keys.

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

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

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

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

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

sudo yum remove yum-plugin-keys.noarch

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

/etc/yum/pluginconf.d/keys.conf
/usr/lib/yum-plugins/keys.py
/usr/lib/yum-plugins/keys.pyc
/usr/lib/yum-plugins/keys.pyo
/usr/share/doc/yum-plugin-keys-1.1.31
/usr/share/doc/yum-plugin-keys-1.1.31/COPYING

References

Summary

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