How To Install openvswitch-selinux-extra-policy on Rocky Linux 8

In this tutorial we learn how to install openvswitch-selinux-extra-policy on Rocky Linux 8. openvswitch-selinux-extra-policy is Open vSwitch Extra SELinux Policy

Introduction

In this tutorial we learn how to install openvswitch-selinux-extra-policy on Rocky Linux 8.

What is openvswitch-selinux-extra-policy

Tailored Open vSwitch SELinux policy for distribution

We can use yum or dnf to install openvswitch-selinux-extra-policy on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install openvswitch-selinux-extra-policy.

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

sudo dnf -y install openvswitch-selinux-extra-policy

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

sudo yum -y install openvswitch-selinux-extra-policy

How To Uninstall openvswitch-selinux-extra-policy on Rocky Linux 8

To uninstall only the openvswitch-selinux-extra-policy package we can use the following command:

sudo dnf remove openvswitch-selinux-extra-policy

openvswitch-selinux-extra-policy Package Contents on Rocky Linux 8

/usr/share/selinux/packages/openvswitch-custom.pp

References

Summary

In this tutorial we learn how to install openvswitch-selinux-extra-policy on Rocky Linux 8 using yum and dnf.