How To Install perl-URI-FromHash on AlmaLinux 8

In this tutorial we learn how to install perl-URI-FromHash in AlmaLinux 8. perl-URI-FromHash is Build a URI from a set of named parameters

Introduction

In this tutorial we learn how to install perl-URI-FromHash on AlmaLinux 8.

What is perl-URI-FromHash

This module provides a simple one-subroutine “named parameters” style interface for creating URIs. Underneath the hood it uses ‘URI.pm’, though because of the simplified interface it may not support all possible options for all types of URIs. It was created for the common case where you simply want to have a simple interface for creating syntactically correct URIs from known components (like a path and query string). Doing this using the native ‘URI.pm’ interface is rather tedious, requiring a number of method calls, which is particularly ugly when done inside a templating system such as Mason or TT2.

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

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

sudo dnf -y install perl-URI-FromHash

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

sudo yum -y install perl-URI-FromHash

How To Uninstall perl-URI-FromHash on AlmaLinux 8

To uninstall only the perl-URI-FromHash package we can use the following command:

sudo dnf remove perl-URI-FromHash

References

Summary

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