Ways to Uninstall or Install compartment on Ubuntu 22.04

Updated: September 5, 2022

Compartment was designed to allow safe execution of privileged and/or untrusted executables and services. It can execute a process: In this tutorial, I will show you ways to install compartment Ubuntu 22.04.

Prerequisites

  • Operating system: Ubuntu 22.04 is needed for compartment to work
  • Privileges: Make sure that you can run the sudo commands line.

Prerequisites to install compartment on Ubuntu 22.04

Install compartment Ubuntu 22.04

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

This is a popular method for installing Ubuntu packages since it’s simple to understand, even if you’re new to Linux. Following these steps to get compartment on your Ubuntu 22.04.

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 installing the packages on Ubuntu 22.04. After updating, you can install compartment Ubuntu by executing this command in the terminal.

sudo apt -y install compartment

Install compartment 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-get -y install aptitude

Then, you can now install compartment 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. Launch the terminal and enter the following Linux command:

sudo apt update

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

sudo aptitude -y install compartment

Uninstall compartment on Ubuntu 22.04

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

If you installed compartment using APT or Aptitude, you could uninstall compartment on Ubuntu by following this step:

sudo apt remove --auto-remove compartment

If you want to uninstall compartment and delete its data and dependencies, you can also run the following command:

sudo apt autoremove --purge compartment

Conclusion

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