How To Install python3-iptools on AlmaLinux 8
Introduction
In this tutorial we learn how to install python3-iptools
on AlmaLinux 8.
What is python3-iptools
A few useful functions and objects for manipulating IPv4 and IPv6 addresses in python. The project was inspired by a desire to be able to use CIDR address notation to designate INTERNAL_IPS in a Django project’s settings file.
We can use yum
or dnf
to install python3-iptools
on AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install python3-iptools.
Install python3-iptools on AlmaLinux 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install python3-iptools
using dnf
by running the following command:
sudo dnf -y install python3-iptools
Install python3-iptools on AlmaLinux 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install python3-iptools
using yum
by running the following command:
sudo yum -y install python3-iptools
How To Uninstall python3-iptools on AlmaLinux 8
To uninstall only the python3-iptools
package we can use the following command:
sudo dnf remove python3-iptools
References
Summary
In this tutorial we learn how to install python3-iptools
on AlmaLinux 8 using yum and dnf.