How To Install pcp-selinux.x86_64 on Amazon Linux 2

In this tutorial we learn how to install pcp-selinux.x86_64 in Amazon Linux 2. pcp-selinux.x86_64 is Selinux policy package

Introduction

In this tutorial we learn how to install pcp-selinux.x86_64 on Amazon Linux 2.

What is pcp-selinux.x86_64

This package contains Security Enhanced Linux support for PCP. The package contains interface rules, type enforcement and file context adjustments for an updated policy package.

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

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

sudo yum -y install pcp-selinux.x86_64

How To Uninstall pcp-selinux.x86_64 on Amazon Linux 2

To uninstall only the pcp-selinux.x86_64 package we can use the following command:

sudo yum remove pcp-selinux.x86_64

pcp-selinux.x86_64 Package Contents on Amazon Linux 2

/usr/libexec/pcp/bin/selinux-setup
/var/lib/pcp/selinux/pcpupstream-container.pp
/var/lib/pcp/selinux/pcpupstream-container.te
/var/lib/pcp/selinux/pcpupstream.pp
/var/lib/pcp/selinux/pcpupstream.te

References

Summary

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