How To Install checkpolicy on Fedora 36

In this tutorial we learn how to install checkpolicy in Fedora 36. checkpolicy is SELinux policy compiler

Introduction

In this tutorial we learn how to install checkpolicy on Fedora 36.

What is checkpolicy

Security-enhanced Linux is a feature of the Linux® kernel and a number of utilities with enhanced security functionality designed to add mandatory access controls to Linux. The Security-enhanced Linux kernel contains new architectural components originally developed to improve the security of the Flask operating system. These architectural components provide general support for the enforcement of many kinds of mandatory access control policies, including those based on the concepts of Type Enforcement®, Role-based Access Control, and Multi-level Security. This package contains checkpolicy, the SELinux policy compiler. Only required for building policies.

We can use yum or dnf to install checkpolicy on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install checkpolicy.

Install checkpolicy on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install checkpolicy using dnf by running the following command:

sudo dnf -y install checkpolicy

Install checkpolicy on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install checkpolicy using yum by running the following command:

sudo yum -y install checkpolicy

How To Uninstall checkpolicy on Fedora 36

To uninstall only the checkpolicy package we can use the following command:

sudo dnf remove checkpolicy

checkpolicy Package Contents on Fedora 36

/usr/bin/checkmodule
/usr/bin/checkpolicy
/usr/bin/sedismod
/usr/bin/sedispol
/usr/lib/.build-id
/usr/lib/.build-id/21
/usr/lib/.build-id/21/4c090935e437ef9e8e30dcf0e2a1d39885ae67
/usr/lib/.build-id/29
/usr/lib/.build-id/29/f727b27c148e32bf72b4cb63b2ff1875e1bcd8
/usr/lib/.build-id/d8
/usr/lib/.build-id/d8/5909430d81751558bc0e49980adfb1192ee335
/usr/lib/.build-id/e2
/usr/lib/.build-id/e2/31d0bee4775b312b29417a0f7e201e62ffd0f5
/usr/share/licenses/checkpolicy
/usr/share/licenses/checkpolicy/COPYING
/usr/share/man/man8/checkmodule.8.gz
/usr/share/man/man8/checkpolicy.8.gz
/usr/share/man/ru/man8/checkmodule.8.gz
/usr/share/man/ru/man8/checkpolicy.8.gz

References

Summary

In this tutorial we learn how to install checkpolicy on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).