How To Install python2-networkmanager on CentOS 7

In this tutorial we learn how to install python2-networkmanager on CentOS 7. python2-networkmanager is Easy communication with NetworkManager

Introduction

In this tutorial we learn how to install python2-networkmanager on CentOS 7.

What is python2-networkmanager

python-networkmanager wraps NetworkManagers D-Bus interface so you can be less verbose when talking to NetworkManager from python. All interfaces have been wrapped in classes, properties are exposed as python properties and function calls are forwarded to the correct interface.

We can use yum or dnf to install python2-networkmanager on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install python2-networkmanager.

Install python2-networkmanager on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install python2-networkmanager using yum by running the following command:

sudo yum -y install python2-networkmanager

Install python2-networkmanager on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install python2-networkmanager using dnf by running the following command:

sudo dnf -y install python2-networkmanager

How To Uninstall python2-networkmanager on CentOS 7

To uninstall only the python2-networkmanager package we can use the following command:

sudo dnf remove python2-networkmanager

References

Summary

In this tutorial we learn how to install python2-networkmanager on CentOS 7 using yum and dnf.