How To Install python3-netifaces on Rocky Linux 8

In this tutorial we learn how to install python3-netifaces on Rocky Linux 8. python3-netifaces is Python 3 library to retrieve information about network interfaces

Introduction

In this tutorial we learn how to install python3-netifaces on Rocky Linux 8.

What is python3-netifaces

This package provides a cross platform API for getting address information from network interfaces.

We can use yum or dnf to install python3-netifaces on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install python3-netifaces.

Install python3-netifaces on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install python3-netifaces

Install python3-netifaces on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install python3-netifaces

How To Uninstall python3-netifaces on Rocky Linux 8

To uninstall only the python3-netifaces package we can use the following command:

sudo dnf remove python3-netifaces

python3-netifaces Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/33
/usr/lib/.build-id/33/4c1a17e1e8af794f7bce9861c68bbb3c97f559
/usr/lib64/python3.6/site-packages/netifaces-0.10.6-py3.6.egg-info
/usr/lib64/python3.6/site-packages/netifaces-0.10.6-py3.6.egg-info/PKG-INFO
/usr/lib64/python3.6/site-packages/netifaces-0.10.6-py3.6.egg-info/SOURCES.txt
/usr/lib64/python3.6/site-packages/netifaces-0.10.6-py3.6.egg-info/dependency_links.txt
/usr/lib64/python3.6/site-packages/netifaces-0.10.6-py3.6.egg-info/top_level.txt
/usr/lib64/python3.6/site-packages/netifaces-0.10.6-py3.6.egg-info/zip-safe
/usr/lib64/python3.6/site-packages/netifaces.cpython-36m-x86_64-linux-gnu.so
/usr/share/doc/python3-netifaces
/usr/share/doc/python3-netifaces/README.rst

References

Summary

In this tutorial we learn how to install python3-netifaces on Rocky Linux 8 using yum and dnf.