Ways to Install or Uninstall cl-trivial-garbage Ubuntu 22.04

Updated: October 13, 2022

trivial-garbage provides a portable API to finalizers, weak hash-tables and weak pointers on all major implementations of the Common Lisp programming language. In this tutorial, I will show you how to install cl-trivial-garbage on Ubuntu 22.04.

Prerequisites

  • Operating system: Ubuntu 22.04 or older versions with more than 2GB RAM
  • Privileges: Check that you can run sudo commands.

Prerequisites to install cl-trivial-garbage on Ubuntu 22.04

Install cl-trivial-garbage Ubuntu 22.04

cl-trivial-garbage 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 you believe is simple and easy to follow.

Install cl-trivial-garbage 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 cl-trivial-garbage on your Ubuntu.

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

sudo apt -y update

Step 2: Install the package on Ubuntu 22.04. After updating the system, you can now install cl-trivial-garbage Ubuntu by pasting this command into the terminal and pressing Enter.

sudo apt install cl-trivial-garbage

Install cl-trivial-garbage using Aptitude

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

sudo apt-get install aptitude

Then, you can now install cl-trivial-garbage by following these steps:

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

sudo apt -y update

Step 2: Install the package on Ubuntu 22.04. After updating, you can install cl-trivial-garbage Ubuntu by pasting this command into the terminal and executing it.

sudo aptitude -y install cl-trivial-garbage

Uninstall cl-trivial-garbage 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.

If you installed cl-trivial-garbage using APT or Aptitude, you could uninstall cl-trivial-garbage on Ubuntu by running this command

sudo apt remove --auto-remove cl-trivial-garbage

To uninstall cl-trivial-garbage and remove its data and dependencies, you can also use the following command:

sudo apt autoremove --purge cl-trivial-garbage

Summary

In this tutorial, I showed you ways to install cl-trivial-garbage on Ubuntu 22.04 and some ways to uninstall cl-trivial-garbage too. Please do not hesitate to contact me if you require assistance. I’m delighted to respond.