How To Install libseccomp.x86_64 on Amazon Linux 2

In this tutorial we learn how to install libseccomp.x86_64 in Amazon Linux 2. libseccomp.x86_64 is Enhanced seccomp library

Introduction

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

What is libseccomp.x86_64

The libseccomp library provides an easy to use interface to the Linux Kernel’s syscall filtering mechanism, seccomp. The libseccomp API allows an application to specify which syscalls, and optionally which syscall arguments, the application is allowed to execute, all of which are enforced by the Linux Kernel.

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

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

sudo yum -y install libseccomp.x86_64

How To Uninstall libseccomp.x86_64 on Amazon Linux 2

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

sudo yum remove libseccomp.x86_64

libseccomp.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/libseccomp.so.2
/usr/lib64/libseccomp.so.2.4.1
/usr/share/doc/libseccomp-2.4.1
/usr/share/doc/libseccomp-2.4.1/CHANGELOG
/usr/share/doc/libseccomp-2.4.1/CREDITS
/usr/share/doc/libseccomp-2.4.1/README.md
/usr/share/licenses/libseccomp-2.4.1
/usr/share/licenses/libseccomp-2.4.1/LICENSE

References

Summary

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