How To Install pristine-tar on Debian 10

Learn how to install pristine-tar on Debian 10 with this tutorial. pristine-tar is regenerate pristine tarballs

Introduction

In this tutorial we learn how to install pristine-tar on Debian 10.

What is pristine-tar

pristine-tar is:

pristine-tar can regenerate a pristine upstream tarball using only a small binary delta file and a revision control checkout of the upstream branch.

The package also includes a pristine-gz command, which can regenerate a pristine .gz file, a pristine-bz2 for .bz2 files, and a pristine-xz for .xz files.

The delta file is designed to be checked into revision control along-side the upstream branch, thus allowing Debian packages to be built entirely using sources in revision control, without the need to keep copies of upstream tarballs.

An optional upstream signature may be attached to tarballs for verification by, for example, dpkg-source(1).

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

Install pristine-tar Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install pristine-tar

Install pristine-tar Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install pristine-tar

Install pristine-tar 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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install pristine-tar

How To Uninstall pristine-tar on Debian 10

To uninstall only the pristine-tar package we can use the following command:

sudo apt-get remove pristine-tar

Uninstall pristine-tar And Its Dependencies

To uninstall pristine-tar and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove pristine-tar

Remove pristine-tar Configurations and Data

To remove pristine-tar configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge pristine-tar

Remove pristine-tar configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge pristine-tar

Dependencies

pristine-tar have the following dependencies:

References

Summary

In this tutorial we learn how to install pristine-tar package on Debian 10 using different package management tools: apt, apt-get and aptitude.