How To Install ceph-selinux on Fedora 36

In this tutorial we learn how to install ceph-selinux in Fedora 36. ceph-selinux is SELinux support for Ceph MON, OSD and MDS

Introduction

In this tutorial we learn how to install ceph-selinux on Fedora 36.

What is ceph-selinux

This package contains SELinux support for Ceph MON, OSD and MDS. The package also performs file-system relabelling which can take a long time on heavily populated file-systems.

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

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

sudo dnf -y install ceph-selinux

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

sudo yum -y install ceph-selinux

How To Uninstall ceph-selinux on Fedora 36

To uninstall only the ceph-selinux package we can use the following command:

sudo dnf remove ceph-selinux

ceph-selinux Package Contents on Fedora 36

/usr/share/man/man8/ceph_selinux.8.gz
/usr/share/selinux/devel/include/contrib/ceph.if
/usr/share/selinux/packages/ceph.pp

References

Summary

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