How To Install yum-plugin-remove-with-leaves.noarch on Amazon Linux 2

In this tutorial we learn how to install yum-plugin-remove-with-leaves.noarch in Amazon Linux 2. yum-plugin-remove-with-leaves.noarch is Yum plugin to remove dependencies which are no longer used because

Introduction

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

What is yum-plugin-remove-with-leaves.noarch

This plugin removes any unused dependencies that were brought in by an install but would not normally be removed. It helps to keep a system clean of unused libraries and packages.

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

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

sudo yum -y install yum-plugin-remove-with-leaves.noarch

How To Uninstall yum-plugin-remove-with-leaves.noarch on Amazon Linux 2

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

sudo yum remove yum-plugin-remove-with-leaves.noarch

yum-plugin-remove-with-leaves.noarch Package Contents on Amazon Linux 2

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

References

Summary

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