How To Install python3-netifaces on Fedora 36

In this tutorial we learn how to install python3-netifaces in Fedora 36. python3-netifaces is Python 3 library to retrieve information about network interfaces

Introduction

In this tutorial we learn how to install python3-netifaces on Fedora 36.

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 Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install python3-netifaces.

Install python3-netifaces on Fedora 36 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 Fedora 36 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 Fedora 36

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

sudo dnf remove python3-netifaces

python3-netifaces Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/77
/usr/lib/.build-id/77/f683878852806ef968fd572ba8982a67776f34
/usr/lib64/python3.10/site-packages/netifaces-0.11.0-py3.10.egg-info
/usr/lib64/python3.10/site-packages/netifaces-0.11.0-py3.10.egg-info/PKG-INFO
/usr/lib64/python3.10/site-packages/netifaces-0.11.0-py3.10.egg-info/SOURCES.txt
/usr/lib64/python3.10/site-packages/netifaces-0.11.0-py3.10.egg-info/dependency_links.txt
/usr/lib64/python3.10/site-packages/netifaces-0.11.0-py3.10.egg-info/top_level.txt
/usr/lib64/python3.10/site-packages/netifaces-0.11.0-py3.10.egg-info/zip-safe
/usr/lib64/python3.10/site-packages/netifaces.cpython-310-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 Fedora 36 using yum and [dnf]((/fedora/36/dnf/).