How To Install lightdm on Ubuntu 20.04
Introduction
In this tutorial we learn how to install lightdm
on Ubuntu 20.04.
What is lightdm
lightdm is:
LightDM is a X display manager that:
- Has a lightweight codebase
- Is standards compliant (PAM, ConsoleKit, etc)
- Has a well defined interface between the server and user interface
- Cross-desktop (greeters can be written in any toolkit) Task: xubuntu-core, xubuntu-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop
Package: lightdm Architecture: amd64 Version: 1.30.0-0ubuntu3.1 Priority: optional Section: universe/x11 Origin: Ubuntu Maintainer: Robert Ancell [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 839 Provides: x-display-manager Pre-Depends: dpkg (>= 1.15.7.2) Depends: debconf (>= 0.5) | debconf-2.0, libc6 (>= 2.14), libgcrypt20 (>= 1.7.0), libglib2.0-0 (>= 2.39.4), libpam0g (>= 0.99.7.1), libxcb1, libxdmcp6, adduser, bash (>= 4.3), dbus, libglib2.0-bin, libpam-runtime (>= 0.76-14), libpam-modules, plymouth (>= 0.8.8-0ubuntu18) Recommends: xserver-xorg, unity-greeter | lightdm-greeter | lightdm-kde-greeter Suggests: bindfs Conflicts: liblightdm-gobject-0-0, liblightdm-qt-0-0 Filename: pool/universe/l/lightdm/lightdm_1.30.0-0ubuntu3.1_amd64.deb Size: 144112 MD5sum: 7a45a8430e415777fc2cd1cc8c019cbf SHA1: 35d488e75f70463a8a119c7ee4ede27f6b57aa53 SHA256: 7a1534664731963015bba939844580c0fa86ab3c468d066c3ed9cd2effca63cb Homepage: https://github.com/canonical/lightdm Description-en: Display Manager LightDM is a X display manager that:
- Has a lightweight codebase
- Is standards compliant (PAM, ConsoleKit, etc)
- Has a well defined interface between the server and user interface
- Cross-desktop (greeters can be written in any toolkit) Task: xubuntu-core, xubuntu-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop
There are three methods to install lightdm
on Ubuntu 20.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 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
using apt-get
by running the following command:
sudo apt-get -y install lightdm
Install lightdm Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install lightdm
using apt
by running the following command:
sudo apt -y install lightdm
Install lightdm 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
using aptitude
by running the following command:
sudo aptitude -y install lightdm
How To Uninstall lightdm on Ubuntu 20.04
To uninstall only the lightdm
package we can use the following command:
sudo apt-get remove lightdm
Uninstall lightdm And Its Dependencies
To uninstall lightdm
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove lightdm
Remove lightdm Configurations and Data
To remove lightdm
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge lightdm
Remove lightdm configuration, data, and all of its dependencies
We can use the following command to remove lightdm
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge lightdm
References
Summary
In this tutorial we learn how to install lightdm
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.