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

In this tutorial we learn how to install yum-plugin-fastestmirror.noarch in Amazon Linux 2. yum-plugin-fastestmirror.noarch is Yum plugin which chooses fastest repository from a mirrorlist

Introduction

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

What is yum-plugin-fastestmirror.noarch

This plugin sorts each repository’s mirrorlist by connection speed prior to downloading packages.

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

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

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

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

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

sudo yum remove yum-plugin-fastestmirror.noarch

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

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

References

Summary

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