How To Install libcgroup-pam.x86_64 on Amazon Linux 2

In this tutorial we learn how to install libcgroup-pam.x86_64 in Amazon Linux 2. libcgroup-pam.x86_64 is A Pluggable Authentication Module for libcgroup

Introduction

In this tutorial we learn how to install libcgroup-pam.x86_64 on Amazon Linux 2.

What is libcgroup-pam.x86_64

Linux-PAM module, which allows administrators to classify the user’s login processes to pre-configured control group.

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

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

sudo yum -y install libcgroup-pam.x86_64

How To Uninstall libcgroup-pam.x86_64 on Amazon Linux 2

To uninstall only the libcgroup-pam.x86_64 package we can use the following command:

sudo yum remove libcgroup-pam.x86_64

libcgroup-pam.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/security/pam_cgroup.so
/usr/share/doc/libcgroup-pam-0.41
/usr/share/doc/libcgroup-pam-0.41/COPYING
/usr/share/doc/libcgroup-pam-0.41/README

References

Summary

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