How to Uninstall and Install check on Ubuntu 22.04

Updated: August 30, 2022

Check features a simple interface for defining unit tests, putting little in the way of the developer. Tests are run in a separate address space, so Check can catch both assertion failures and code errors that cause segmentation faults or other signals. The output from unit tests can be used within source code editors and IDEs. In this tutorial, I will show you ways to install check Ubuntu 22.04.

Prerequisites

  • Operating system: Ubuntu 22.04 or older Ubuntu versions
  • Privileges: Check that you can run sudo commands.

Prerequisites to install check on Ubuntu 22.04

Install check Ubuntu 22.04

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

This is one of the most popular methods for installing Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these steps to get check on your Ubuntu.

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-get -y update

Step 2: Start the package installation on Ubuntu 22.04. After updating, you can install check Ubuntu by pasting this command into the terminal and executing it.

sudo apt -y install check

Install check using Aptitude

If you haven’t already installed Aptitude on Ubuntu, run this command to do so.

sudo apt-get -y install aptitude

After installing, you can now install check by following these steps:

Step 1: Obtain new packages from Ubuntu by updating the APT database. Opening the terminal and executing the following Linux command:

sudo apt update

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

sudo aptitude -y install check

Uninstall check 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.

You can uninstall check Ubuntu by running this command if you installed it using APT or Aptitude.

sudo apt remove --auto-remove check

You can also execute this command if you want to uninstall check and remove its data and dependencies:

sudo apt autoremove --purge check

Summary

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