How To Install apr.x86_64 on Amazon Linux 2

In this tutorial we learn how to install apr.x86_64 in Amazon Linux 2. apr.x86_64 is Apache Portable Runtime library

Introduction

In this tutorial we learn how to install apr.x86_64 on Amazon Linux 2.

What is apr.x86_64

The mission of the Apache Portable Runtime (APR) is to provide a free library of C data structures and routines, forming a system portability layer to as many operating systems as possible, including Unices, MS Win32, BeOS and OS/2.

We can use yum to install apr.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install apr.x86_64.

Install apr.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install apr.x86_64 using yum by running the following command:

sudo yum -y install apr.x86_64

How To Uninstall apr.x86_64 on Amazon Linux 2

To uninstall only the apr.x86_64 package we can use the following command:

sudo yum remove apr.x86_64

apr.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/libapr-1.so.0
/usr/lib64/libapr-1.so.0.7.0
/usr/share/doc/apr-1.7.0
/usr/share/doc/apr-1.7.0/CHANGES
/usr/share/doc/apr-1.7.0/LICENSE
/usr/share/doc/apr-1.7.0/NOTICE

References

Summary

In this tutorial we learn how to install apr.x86_64 on Amazon Linux 2 using yum.