How To Install setroubleshoot-plugins on CentOS 7

In this tutorial we learn how to install setroubleshoot-plugins on CentOS 7. setroubleshoot-plugins is Analysis plugins for use with setroubleshoot

Introduction

In this tutorial we learn how to install setroubleshoot-plugins on CentOS 7.

What is setroubleshoot-plugins

This package provides a set of analysis plugins for use with setroubleshoot. Each plugin has the capacity to analyze SELinux AVC data and system data to provide user friendly reports describing how to interpret SELinux AVC denials.

We can use yum or dnf to install setroubleshoot-plugins on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install setroubleshoot-plugins.

Install setroubleshoot-plugins on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install setroubleshoot-plugins using yum by running the following command:

sudo yum -y install setroubleshoot-plugins

Install setroubleshoot-plugins on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install setroubleshoot-plugins

How To Uninstall setroubleshoot-plugins on CentOS 7

To uninstall only the setroubleshoot-plugins package we can use the following command:

sudo dnf remove setroubleshoot-plugins

References

Summary

In this tutorial we learn how to install setroubleshoot-plugins on CentOS 7 using yum and dnf.