How To Install libasr on Rocky Linux 8

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

Introduction

In this tutorial we learn how to install libasr on Rocky Linux 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 Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install libasr.

Install libasr on Rocky Linux 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 Rocky Linux 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 Rocky Linux 8

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

sudo dnf remove libasr

libasr Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/12
/usr/lib/.build-id/12/e0ebc832953b307a015e79c7ba172b709ab044
/usr/lib64/libasr.so.0
/usr/lib64/libasr.so.0.0.3
/usr/share/doc/libasr
/usr/share/doc/libasr/ChangeLog
/usr/share/doc/libasr/LICENCE
/usr/share/doc/libasr/README.md

References

Summary

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