How To Install libasr on AlmaLinux 8

In this tutorial we learn how to install libasr in AlmaLinux 8. libasr is Free, simple and portable asynchronous resolver library

Introduction

In this tutorial we learn how to install libasr on AlmaLinux 8.

What is libasr

Libasr allows to run DNS queries and perform hostname resolutions in a fully asynchronous fashion. The implementation is thread-less, fork-less, and does not make use of signals or other “tricks” that might get in the developer’s way. The API was initially developed for the OpenBSD operating system, where it is natively supported. This library is intended to bring this interface to other systems. It is originally provided as a support library for the portable version of the OpenSMTPD daemon, but it can be used in any other contexts.

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

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

sudo dnf -y install libasr

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

sudo yum -y install libasr

How To Uninstall libasr on AlmaLinux 8

To uninstall only the libasr package we can use the following command:

sudo dnf remove libasr

References

Summary

In this tutorial we learn how to install libasr on AlmaLinux 8 using yum and dnf.