How To Install polkit-gnome on CentOS 7

In this tutorial we learn how to install polkit-gnome on CentOS 7. polkit-gnome is PolicyKit integration for the GNOME desktop

Introduction

In this tutorial we learn how to install polkit-gnome on CentOS 7.

What is polkit-gnome

polkit-gnome provides an authentication agent for PolicyKit that matches the look and feel of the GNOME desktop.

We can use yum or dnf to install polkit-gnome on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install polkit-gnome.

Install polkit-gnome on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install polkit-gnome using yum by running the following command:

sudo yum -y install polkit-gnome

Install polkit-gnome on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install polkit-gnome using dnf by running the following command:

sudo dnf -y install polkit-gnome

How To Uninstall polkit-gnome on CentOS 7

To uninstall only the polkit-gnome package we can use the following command:

sudo dnf remove polkit-gnome

References

Summary

In this tutorial we learn how to install polkit-gnome on CentOS 7 using yum and dnf.