How To Install libsemanage-static.x86_64 on Amazon Linux 2

In this tutorial we learn how to install libsemanage-static.x86_64 in Amazon Linux 2. libsemanage-static.x86_64 is Static library used to build policy manipulation tools

Introduction

In this tutorial we learn how to install libsemanage-static.x86_64 on Amazon Linux 2.

What is libsemanage-static.x86_64

The semanage-static package contains the static libraries needed for developing applications that manipulate binary policies.

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

Install libsemanage-static.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 libsemanage-static.x86_64 using yum by running the following command:

sudo yum -y install libsemanage-static.x86_64

How To Uninstall libsemanage-static.x86_64 on Amazon Linux 2

To uninstall only the libsemanage-static.x86_64 package we can use the following command:

sudo yum remove libsemanage-static.x86_64

libsemanage-static.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/libsemanage.a

References

Summary

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