How to Install or Uninstall api-sanity-checker on Ubuntu 22.04

Updated: August 29, 2022

API Sanity Checker is an automatic generator of basic unit tests for a C/C++ library. It helps to quickly generate simple (“sanity” or “shallow” quality) tests for every function in an API using their signatures, data type definitions and relationships between functions straight from the library header files (“Header-Driven Generation”). Each test case contains a function call with reasonable (in most, but unfortunately not all, cases) input parameters. The quality of generated tests allows one to check absence of critical errors in simple use cases and can be greatly improved by involving of highly reusable specialized types for the library. In this tutorial, I will show you how to install api-sanity-checker on Ubuntu 22.04.

Prerequisites

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

Prerequisites to install api-sanity-checker on Ubuntu 22.04

Install api-sanity-checker Ubuntu 22.04

api-sanity-checker 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 api-sanity-checker using APT

This is a popular method for installing any Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these instructions to install api-sanity-checker 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 fetch 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 the system, you can install api-sanity-checker Ubuntu by pasting this command into the terminal and pressing Enter.

sudo apt-get -y install api-sanity-checker

Install api-sanity-checker using Aptitude

Aptitude allows users to view a list of available packages and manage package installation, upgrade, and removal. If you haven’t already installed it on Ubuntu, run this command to do so.

sudo apt install aptitude

After that, you can now install api-sanity-checker by following these steps:

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

sudo apt update

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

sudo aptitude -y install api-sanity-checker

Uninstall api-sanity-checker 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 api-sanity-checker, can be easily uninstalled by anyone.

If you installed api-sanity-checker using APT or Aptitude, you could uninstall api-sanity-checker on Ubuntu by running this command

sudo apt remove --auto-remove api-sanity-checker

If you want to uninstall api-sanity-checker and delete its data and dependencies, you can also run the following command:

sudo apt autoremove --purge api-sanity-checker

Conclusion

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