How to Install and Uninstall lxde-common Ubuntu 22.04

Updated: October 29, 2022

LXDE (the Lightweight X11 Desktop Environment) is a project aimed to provide a desktop environment which is lightweight and fast. I will show you how to install lxde-common on Ubuntu 22.04 in this tutorial.

Requirements

  • OS: Ubuntu 22.04 or older versions with more than 2GB RAM
  • Privileges: Ascertain that you are able to execute sudo commands.

Prerequisites to install lxde-common on Ubuntu 22.04

Install lxde-common Ubuntu 22.04

lxde-common is one of the popular ways on Ubuntu now so that this tutorial will show you some ways to install it. Choose the one you believe is simple and easy to follow.

Install lxde-common 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 instructions to install lxde-common on your Ubuntu 22.04.

Step 1: Update the APT database to download new packages from Ubuntu. Opening the terminal and executing this Linux command:

sudo apt-get -y update

Step 2: Start the package installation on Ubuntu 22.04. You can now install lxde-common Ubuntu by executing this command in the terminal.

sudo apt-get install lxde-common

Install lxde-common using Aptitude

Users can manage their installation, upgrade, and removal of packages with Aptitude and view a list of the packages that are currently available. If you haven’t already installed it on Ubuntu, run this command to do so.

sudo apt -y install aptitude

After installing, you can now install lxde-common by following these steps:

Step 1: You must update the APT package repository cache before attempting to install, update, or remove any packages. Update the APT database to download new packages from Ubuntu. Launching the terminal and entering the following Linux command:

sudo apt -y update

Step 2: Start the package installation on Ubuntu 22.04. You can now install lxde-common Ubuntu by executing this command in the terminal.

sudo aptitude install lxde-common

Uninstall lxde-common on Ubuntu 22.04

Have you ever considered how difficult it is to uninstall an application from Ubuntu? You are mistaken; anyone, not just package administrators, can easily uninstall any program.

You can uninstall lxde-common on Ubuntu by running this command if you installed it using APT or Aptitude.

sudo apt remove --auto-remove lxde-common

If you want to uninstall lxde-common and remove its data and dependencies, you can also run the following command:

sudo apt autoremove --purge lxde-common

Conclusion

In this tutorial, I showed you ways to install lxde-common on Ubuntu 22.04 and ways to uninstall lxde-common too. If you need any help, don’t hesitate to contact me. I’m very glad to answer them.