How To Install gdm on CentOS 7

In this tutorial we learn how to install gdm on CentOS 7. gdm is The GNOME Display Manager

Introduction

In this tutorial we learn how to install gdm on CentOS 7.

What is gdm

GDM, the GNOME Display Manager, handles authentication-related backend functionality for logging in a user and unlocking the user’s session after it’s been locked. GDM also provides functionality for initiating user-switching, so more than one user can be logged in at the same time. It handles graphical session registration with the system for both local and remote sessions (in the latter case, via the XDMCP protocol). In cases where the session doesn’t provide it’s own display server, GDM can start the display server on behalf of the session. GDM, the GNOME Display Manager, handles authentication-related backend functionality for logging in a user and unlocking the user’s session after it’s been locked. GDM also provides functionality for initiating user-switching, so more than one user can be logged in at the same time. It handles graphical session registration with the system for both local and remote sessions (in the latter case, via the XDMCP protocol). In cases where the session doesn’t provide it’s own display server, GDM can start the display server on behalf of the session.

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

Install gdm on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install gdm using yum by running the following command:

sudo yum -y install gdm

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

sudo dnf -y install gdm

How To Uninstall gdm on CentOS 7

To uninstall only the gdm package we can use the following command:

sudo dnf remove gdm

References

Summary

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