How To Install piuparts on Ubuntu 22.04

In this tutorial we learn how to install piuparts on Ubuntu 22.04. piuparts is .deb package installation, upgrading, and removal testing tool

Introduction

In this tutorial we learn how to install piuparts on Ubuntu 22.04.

What is piuparts

piuparts is:

piuparts tests that .deb packages (as used by Debian) handle installation, upgrading, and removal correctly. It does this by creating a minimal Debian installation in a chroot, and installing, upgrading, and removing packages in that environment, and comparing the state of the directory tree before and after. piuparts reports any files that have been added, removed, or modified during this process.

piuparts is meant as a quality assurance tool for people who create .deb packages to test them before they upload them to the Debian package archive.

There are three methods to install piuparts on Ubuntu 22.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install piuparts Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install piuparts using apt-get by running the following command:

sudo apt-get -y install piuparts

Install piuparts Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install piuparts using apt by running the following command:

sudo apt -y install piuparts

Install piuparts Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install piuparts using aptitude by running the following command:

sudo aptitude -y install piuparts

How To Uninstall piuparts on Ubuntu 22.04

To uninstall only the piuparts package we can use the following command:

sudo apt-get remove piuparts

Uninstall piuparts And Its Dependencies

To uninstall piuparts and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:

sudo apt-get -y autoremove piuparts

Remove piuparts Configurations and Data

To remove piuparts configuration and data from Ubuntu 22.04 we can use the following command:

sudo apt-get -y purge piuparts

Remove piuparts configuration, data, and all of its dependencies

We can use the following command to remove piuparts configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge piuparts

References

Summary

In this tutorial we learn how to install piuparts package on Ubuntu 22.04 using different package management tools: apt, apt-get and aptitude.