How To Install policycoreutils-restorecond on Rocky Linux 8
Introduction
In this tutorial we learn how to install policycoreutils-restorecond
on Rocky Linux 8.
What is policycoreutils-restorecond
The policycoreutils-restorecond package contains the restorecond service.
We can use yum
or dnf
to install policycoreutils-restorecond
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install policycoreutils-restorecond.
Install policycoreutils-restorecond on Rocky Linux 8 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 Rocky Linux 8 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 Rocky Linux 8
To uninstall only the policycoreutils-restorecond
package we can use the following command:
sudo dnf remove policycoreutils-restorecond
policycoreutils-restorecond Package Contents on Rocky Linux 8
/etc/selinux/restorecond.conf
/etc/selinux/restorecond_user.conf
/etc/xdg/autostart/restorecond.desktop
/usr/lib/.build-id
/usr/lib/.build-id/3f
/usr/lib/.build-id/3f/032d8bacded0251bb858b870ec18ab624d7811
/usr/lib/systemd/system/restorecond.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 Rocky Linux 8 using yum and dnf.