How to Install and Uninstall checkinstall on Ubuntu 22.04

Updated: September 5, 2022

CheckInstall keeps track of all the files created or modified by your installation script (“make install” “make install_modules”, “setup”, etc), builds a standard binary package and installs it in your system giving you the ability to uninstall it with your distribution’s standard package management utilities. I will show you how to install checkinstall on Ubuntu 22.04 in this guide.

Requirements

  • OS: checkinstall needs Ubuntu 22.04 to work
  • Privileges: Check that you can run sudo commands.

Prerequisites to install checkinstall on Ubuntu 22.04

Install checkinstall Ubuntu 22.04

checkinstall is one of the popular ways on Ubuntu now so that this tutorial will show you some ways to install it. Choose the one that you think is easy and you can follow.

Install checkinstall using APT

This is one of the popular ways to install any Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these steps to get checkinstall 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. Opening the terminal and executing this Linux command:

sudo apt -y update

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

sudo apt-get -y install checkinstall

Install checkinstall using Aptitude

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

sudo apt -y install aptitude

Then, you can now install checkinstall by following these steps:

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

sudo apt -y update

Step 2: Start installing the packages on Ubuntu 22.04. You can now install checkinstall Ubuntu by executing this command in the terminal.

sudo aptitude -y install checkinstall

Uninstall checkinstall on Ubuntu 22.04

Have you ever considered how challenging it might be to uninstall an application from Ubuntu? You’re wrong, anyone can easily uninstall any program, not just a checkinstall.

If you installed checkinstall using APT or Aptitude, you could uninstall checkinstall on Ubuntu by running this command

sudo apt remove --auto-remove checkinstall

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

sudo apt autoremove --purge checkinstall

Conclusion

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