Disabling SELinux After the Upgrade After the upgrade, it is mandatory to enable or disable SELinux again as per your requirement. To disable SELinux: Run the following commands: sed -i -e "s/^SELINUX=.*/SELINUX=disabled/" /etc/selinux/config reboot