How To Install policycoreutils-devel.x86_64 on Amazon Linux 2

In this tutorial we learn how to install policycoreutils-devel.x86_64 in Amazon Linux 2. policycoreutils-devel.x86_64 is SELinux policy core policy devel utilities

Introduction

In this tutorial we learn how to install policycoreutils-devel.x86_64 on Amazon Linux 2.

What is policycoreutils-devel.x86_64

The policycoreutils-devel package contains the management tools use to develop policy in an SELinux environment.

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

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

sudo yum -y install policycoreutils-devel.x86_64

How To Uninstall policycoreutils-devel.x86_64 on Amazon Linux 2

To uninstall only the policycoreutils-devel.x86_64 package we can use the following command:

sudo yum remove policycoreutils-devel.x86_64

policycoreutils-devel.x86_64 Package Contents on Amazon Linux 2

/usr/bin/semodule_deps
/usr/bin/semodule_expand
/usr/bin/semodule_link
/usr/bin/semodule_unpackage
/usr/bin/sepolgen
/usr/bin/sepolgen-ifgen
/usr/bin/sepolgen-ifgen-attr-helper
/usr/bin/sepolicy
/usr/lib64/python2.7/site-packages/sepolicy/generate.py
/usr/lib64/python2.7/site-packages/sepolicy/generate.pyc
/usr/lib64/python2.7/site-packages/sepolicy/generate.pyo
/usr/share/bash-completion/completions/sepolicy
/usr/share/man/man8/semodule_deps.8.gz
/usr/share/man/man8/semodule_expand.8.gz
/usr/share/man/man8/semodule_link.8.gz
/usr/share/man/man8/semodule_unpackage.8.gz
/usr/share/man/man8/sepolgen.8.gz
/usr/share/man/man8/sepolicy-booleans.8.gz
/usr/share/man/man8/sepolicy-communicate.8.gz
/usr/share/man/man8/sepolicy-generate.8.gz
/usr/share/man/man8/sepolicy-interface.8.gz
/usr/share/man/man8/sepolicy-manpage.8.gz
/usr/share/man/man8/sepolicy-network.8.gz
/usr/share/man/man8/sepolicy-transition.8.gz
/usr/share/man/man8/sepolicy.8.gz
/usr/share/man/ru/man8/semodule_deps.8.gz
/usr/share/man/ru/man8/semodule_expand.8.gz
/usr/share/man/ru/man8/semodule_link.8.gz
/var/lib/sepolgen
/var/lib/sepolgen/perm_map

References

Summary

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