How To Install container-selinux on Rocky Linux 8
Introduction
In this tutorial we learn how to install container-selinux
on Rocky Linux 8.
What is container-selinux
SELinux policy modules for use with container runtimes.
We can use yum
or dnf
to install container-selinux
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install container-selinux.
Install container-selinux 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 container-selinux
using dnf
by running the following command:
sudo dnf -y install container-selinux
Install container-selinux 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 container-selinux
using yum
by running the following command:
sudo yum -y install container-selinux
How To Uninstall container-selinux on Rocky Linux 8
To uninstall only the container-selinux
package we can use the following command:
sudo dnf remove container-selinux
container-selinux Package Contents on Rocky Linux 8
/usr/share/containers/selinux
/usr/share/containers/selinux/contexts
/usr/share/doc/container-selinux
/usr/share/doc/container-selinux/README.md
/usr/share/selinux/devel
/usr/share/selinux/devel/include
/usr/share/selinux/devel/include/services
/usr/share/selinux/devel/include/services/container.if
/usr/share/selinux/packages
/usr/share/selinux/packages/container.pp.bz2
References
Summary
In this tutorial we learn how to install container-selinux
on Rocky Linux 8 using yum and dnf.