How To Install lightdm-gtk-greeter on Ubuntu 18.04

In this tutorial we learn how to install lightdm-gtk-greeter on Ubuntu 18.04. lightdm-gtk-greeter is simple display manager (GTK+ greeter)

Introduction

In this tutorial we learn how to install lightdm-gtk-greeter on Ubuntu 18.04.

What is lightdm-gtk-greeter

lightdm-gtk-greeter is:

A LightDM greeter that uses the GTK+ toolkit.

There are three methods to install lightdm-gtk-greeter on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install lightdm-gtk-greeter Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install lightdm-gtk-greeter using apt-get by running the following command:

sudo apt-get -y install lightdm-gtk-greeter

Install lightdm-gtk-greeter Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install lightdm-gtk-greeter using apt by running the following command:

sudo apt -y install lightdm-gtk-greeter

Install lightdm-gtk-greeter Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install lightdm-gtk-greeter using aptitude by running the following command:

sudo aptitude -y install lightdm-gtk-greeter

How To Uninstall lightdm-gtk-greeter on Ubuntu 18.04

To uninstall only the lightdm-gtk-greeter package we can use the following command:

sudo apt-get remove lightdm-gtk-greeter

Uninstall lightdm-gtk-greeter And Its Dependencies

To uninstall lightdm-gtk-greeter and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove lightdm-gtk-greeter

Remove lightdm-gtk-greeter Configurations and Data

To remove lightdm-gtk-greeter configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge lightdm-gtk-greeter

Remove lightdm-gtk-greeter configuration, data, and all of its dependencies

We can use the following command to remove lightdm-gtk-greeter configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge lightdm-gtk-greeter

References

Summary

In this tutorial we learn how to install lightdm-gtk-greeter package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.