How To Install perl-Net-Patricia on AlmaLinux 8

In this tutorial we learn how to install perl-Net-Patricia in AlmaLinux 8. perl-Net-Patricia is Patricia Trie perl module for fast IP address lookups

Introduction

In this tutorial we learn how to install perl-Net-Patricia on AlmaLinux 8.

What is perl-Net-Patricia

This module uses a Patricia Trie data structure to quickly perform IP address prefix matching for applications such as IP subnet, network or routing table lookups. The data structure is based on a radix tree using a radix of two, so sometimes you see patricia implementations called “radix” as well. The term “Trie” is derived from the word “retrieval” but is pronounced like “try”. Patricia stands for “Practical Algorithm to Retrieve Information Coded as Alphanumeric”, and was first suggested for routing table lookups by Van Jacobsen. Patricia Trie performance characteristics are well-known as it has been employed for routing table lookups within the BSD kernel since the 4.3 Reno release.

We can use yum or dnf to install perl-Net-Patricia on AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install perl-Net-Patricia.

Install perl-Net-Patricia 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 perl-Net-Patricia using dnf by running the following command:

sudo dnf -y install perl-Net-Patricia

Install perl-Net-Patricia 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 perl-Net-Patricia using yum by running the following command:

sudo yum -y install perl-Net-Patricia

How To Uninstall perl-Net-Patricia on AlmaLinux 8

To uninstall only the perl-Net-Patricia package we can use the following command:

sudo dnf remove perl-Net-Patricia

References

Summary

In this tutorial we learn how to install perl-Net-Patricia on AlmaLinux 8 using yum and dnf.