Ways to Install or Uninstall compton on Ubuntu 22.04

Updated: October 9, 2022

compton is a compositor for X11, based on xcompmgr. In addition to shadows, fading and translucency, compton implements window frame opacity control, inactive window transparency, and shadows on argb windows. In this tutorial, I will show you ways to install compton Ubuntu 22.04.

Prerequisites to install

  • OS: Ubuntu 22.04 is needed for compton to work
  • Privileges: Make sure you are able to execute sudo commands.

Prerequisites to install compton on Ubuntu 22.04

Install compton Ubuntu 22.04

compton 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 compton using APT

This is one of the popular ways to install any Ubuntu packages because it is simple to understand, even if you are a Linux novice. Following these steps to install compton on your Ubuntu 22.04.

Step 1: Update the APT database to download new packages from Ubuntu. Launch the terminal and enter the following Linux command:

sudo apt update

Step 2: Start the package installation on Ubuntu 22.04. After updating, you can install compton Ubuntu by executing this command in the terminal.

sudo apt -y install compton

Install compton using Aptitude

If you didn’t install Aptitude on Ubuntu, you need to install it by executing this command.

sudo apt-get install aptitude

After that, you can now install compton, just following these steps:

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

sudo apt update

Step 2: Start installing the packages on Ubuntu 22.04. After updating the system, you can install compton Ubuntu by executing this command in the terminal.

sudo aptitude install compton

Uninstall compton on Ubuntu 22.04

Have you ever thought that uninstalling an application from Ubuntu might be challenging? You’re wrong; any program, not just a compton, can be easily uninstalled by anyone.

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

sudo apt remove --auto-remove compton

To uninstall compton and remove its data and dependencies, you can also use the following command:

sudo apt autoremove --purge compton

Conclusion

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