How To Install libaio on Rocky Linux 8

In this tutorial we learn how to install libaio on Rocky Linux 8. libaio is Linux-native asynchronous I/O access library

Introduction

In this tutorial we learn how to install libaio on Rocky Linux 8.

What is libaio

The Linux-native asynchronous I/O facility (“async I/O”, or “aio”) has a richer API and capability set than the simple POSIX async I/O facility. This library, libaio, provides the Linux-native API for async I/O. The POSIX async I/O facility requires this library in order to provide kernel-accelerated async I/O capabilities, as do applications which require the Linux-native async I/O API.

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

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

sudo dnf -y install libaio

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

sudo yum -y install libaio

How To Uninstall libaio on Rocky Linux 8

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

sudo dnf remove libaio

libaio Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/a6
/usr/lib/.build-id/a6/67397f1a99dce9aa9e4373a459a2b54d458260
/usr/lib/.build-id/f8
/usr/lib/.build-id/f8/5a347c804fb006964cd0ecafbce58be4e76514
/usr/lib64/libaio.so.1
/usr/lib64/libaio.so.1.0.0
/usr/lib64/libaio.so.1.0.1
/usr/share/doc/libaio
/usr/share/doc/libaio/COPYING
/usr/share/doc/libaio/TODO
/usr/lib/.build-id
/usr/lib/.build-id/b4
/usr/lib/.build-id/b4/f14a34aa29c083b082c08bd34cd93901dcefc7
/usr/lib/.build-id/f5
/usr/lib/.build-id/f5/a2d8cdbae828e8564b12cc72697ca92e2004d2
/usr/lib/libaio.so.1
/usr/lib/libaio.so.1.0.0
/usr/lib/libaio.so.1.0.1
/usr/share/doc/libaio
/usr/share/doc/libaio/COPYING
/usr/share/doc/libaio/TODO

References

Summary

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