How To Install policycoreutils-restorecond on Fedora 36

In this tutorial we learn how to install policycoreutils-restorecond in Fedora 36. policycoreutils-restorecond is SELinux restorecond utilities

Introduction

In this tutorial we learn how to install policycoreutils-restorecond on Fedora 36.

What is policycoreutils-restorecond

The policycoreutils-restorecond package contains the restorecond service.

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

Install policycoreutils-restorecond 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 policycoreutils-restorecond using dnf by running the following command:

sudo dnf -y install policycoreutils-restorecond

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

sudo yum -y install policycoreutils-restorecond

How To Uninstall policycoreutils-restorecond on Fedora 36

To uninstall only the policycoreutils-restorecond package we can use the following command:

sudo dnf remove policycoreutils-restorecond

policycoreutils-restorecond Package Contents on Fedora 36

/etc/selinux/restorecond.conf
/etc/selinux/restorecond_user.conf
/etc/xdg/autostart/restorecond.desktop
/usr/lib/.build-id
/usr/lib/.build-id/7f
/usr/lib/.build-id/7f/fa434f00c47c64254f46d2e93820c9005d055c
/usr/lib/systemd/system/restorecond.service
/usr/lib/systemd/user/restorecond_user.service
/usr/sbin/restorecond
/usr/share/dbus-1/services/org.selinux.Restorecond.service
/usr/share/licenses/policycoreutils-restorecond
/usr/share/licenses/policycoreutils-restorecond/COPYING
/usr/share/man/man8/restorecond.8.gz
/usr/share/man/ru/man8/restorecond.8.gz

References

Summary

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