How To Install NetworkManager-dispatcher-routing-rules.noarch on Amazon Linux 2

In this tutorial we learn how to install NetworkManager-dispatcher-routing-rules.noarch in Amazon Linux 2. NetworkManager-dispatcher-routing-rules.noarch is NetworkManager dispatcher file for advanced routing rules

Introduction

In this tutorial we learn how to install NetworkManager-dispatcher-routing-rules.noarch on Amazon Linux 2.

What is NetworkManager-dispatcher-routing-rules.noarch

This adds a NetworkManager dispatcher file to support networking configurations using “/etc/sysconfig/network-scripts/rule-NAME” files (eg, to do policy-based routing).

We can use yum to install NetworkManager-dispatcher-routing-rules.noarch on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install NetworkManager-dispatcher-routing-rules.noarch.

Install NetworkManager-dispatcher-routing-rules.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 NetworkManager-dispatcher-routing-rules.noarch using yum by running the following command:

sudo yum -y install NetworkManager-dispatcher-routing-rules.noarch

How To Uninstall NetworkManager-dispatcher-routing-rules.noarch on Amazon Linux 2

To uninstall only the NetworkManager-dispatcher-routing-rules.noarch package we can use the following command:

sudo yum remove NetworkManager-dispatcher-routing-rules.noarch

NetworkManager-dispatcher-routing-rules.noarch Package Contents on Amazon Linux 2

/etc/NetworkManager/dispatcher.d/10-ifcfg-rh-routes.sh
/etc/NetworkManager/dispatcher.d/no-wait.d/10-ifcfg-rh-routes.sh
/etc/NetworkManager/dispatcher.d/pre-up.d/10-ifcfg-rh-routes.sh

References

Summary

In this tutorial we learn how to install NetworkManager-dispatcher-routing-rules.noarch on Amazon Linux 2 using yum.