How To Install py-radix on CentOS 7
Introduction
In this tutorial we learn how to install py-radix
on CentOS 7.
What is py-radix
py-radix is an implementation of a radix tree for Python, which supports storage and lookups of IPv4 and IPv6 networks. The radix tree (a.k.a Patricia tree) is the data structure most commonly used for routing table lookups. It efficiently stores network prefixes of varying lengths and allows fast lookups of containing networks. py-radix’s implementation is built solely for networks (the data structure itself is more general).
We can use yum
or dnf
to install py-radix
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install py-radix.
Install py-radix on CentOS 7 Using yum
Update yum database with yum
using the following command.
sudo yum makecache
After updating yum database, We can install py-radix
using yum
by running the following command:
sudo yum -y install py-radix
Install py-radix 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 py-radix
using dnf
by running the following command:
sudo dnf -y install py-radix
How To Uninstall py-radix on CentOS 7
To uninstall only the py-radix
package we can use the following command:
sudo dnf remove py-radix
References
Summary
In this tutorial we learn how to install py-radix
on CentOS 7 using yum
and dnf
.