Ways to Install and Uninstall gdm3 Ubuntu 22.04

Updated: August 26, 2022

GDM provides the equivalent of a “login:” prompt for X displays: it asks for a login and starts graphical sessions. I will show you how to install gdm3 on Ubuntu 22.04 in this guide.

Requirements

  • OS: Ubuntu 22.04 is needed for gdm3 to work
  • Privileges: Check that you can run sudo commands.

Prerequisites to install gdm3 on Ubuntu 22.04

Install gdm3 Ubuntu 22.04

gdm3 is one of the popular ways on Ubuntu now so that this tutorial will show you how to install it in various ways. Choose the one that you think is easy and you can follow.

Install gdm3 using APT

This is one of the popular ways to install any Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these steps to get gdm3 on your Ubuntu 22.04.

Step 1: Obtain new packages from Ubuntu by updating the APT database. Opening the terminal and executing the following Linux command:

sudo apt-get -y update

Step 2: Install the package on Ubuntu 22.04. After updating the system, you can now install gdm3 Ubuntu by pasting this command into the terminal and pressing Enter.

sudo apt-get install gdm3

Install gdm3 using Aptitude

Aptitude allows users to view a list of available packages and manage package installation, upgrade, and removal. If you haven’t already done so, run this command to install it.

sudo apt install aptitude

Then, you can now install gdm3, just following these steps:

Step 1: Obtain new packages from Ubuntu by updating the APT database. Opening the terminal and executing this Linux command:

sudo apt-get -y update

Step 2: Install the package on Ubuntu 22.04. After updating the system, you can install gdm3 Ubuntu by pasting this command into the terminal and executing it.

sudo aptitude install gdm3

Uninstall gdm3 on Ubuntu 22.04

Have you ever thought that uninstalling an application from Ubuntu is difficult? You are mistaken; Anyone can easily uninstall any program, not just gdm3.

This command can be used to uninstall gdm3 from Ubuntu 22.04 if it was installed using APT or Aptitude.

sudo apt remove --auto-remove gdm3

You can also execute this command if you want to uninstall gdm3 and remove its data and dependencies:

sudo apt autoremove --purge gdm3

Summary

In this tutorial, I showed you ways to install gdm3 on Ubuntu 22.04 and ways to uninstall gdm3 too. Please do not hesitate to contact me if you require assistance. I’m delighted to respond.