How To Install dh-strip-nondeterminism on Ubuntu
Posted on April 1, 2023  (Last modified on May 20, 2023 )
3 minutes • 427 words
Introduction
In this tutorial we learn how to install dh-strip-nondeterminism
on Ubuntu.
What is dh-strip-nondeterminism
dh-strip-nondeterminism is:
StripNondeterminism is a library for stripping non-deterministic information such as timestamps and filesystem ordering from various file and archive formats.
This can be used as a post-processing step to improve the reproducibility of a build product, when the build process itself cannot be made deterministic.
It is used as part of the Reproducible Builds project, although it should be considered a temporary workaround which should not be needed in the long term; upstream software should be reproducible even without using such a tool.
This package installs the ‘dh_strip_nondeterminism’ Debhelper command that strips nondeterminism as part of a Debian package build process.
There are three methods to install dh-strip-nondeterminism
on Ubuntu. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install dh-strip-nondeterminism Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install dh-strip-nondeterminism
using apt-get
by running the following command:
sudo apt-get -y install dh-strip-nondeterminism
Install dh-strip-nondeterminism Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install dh-strip-nondeterminism
using apt
by running the following command:
sudo apt -y install dh-strip-nondeterminism
Install dh-strip-nondeterminism 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 dh-strip-nondeterminism
using aptitude
by running the following command:
sudo aptitude -y install dh-strip-nondeterminism
How To Uninstall dh-strip-nondeterminism on Ubuntu
To uninstall only the dh-strip-nondeterminism
package we can use the following command:
sudo apt-get remove dh-strip-nondeterminism
Uninstall dh-strip-nondeterminism And Its Dependencies
To uninstall dh-strip-nondeterminism
and its dependencies that are no longer needed by Ubuntu, we can use the command below:
sudo apt-get -y autoremove dh-strip-nondeterminism
Remove dh-strip-nondeterminism Configurations and Data
To remove dh-strip-nondeterminism
configuration and data from Ubuntu we can use the following command:
sudo apt-get -y purge dh-strip-nondeterminism
Remove dh-strip-nondeterminism configuration, data, and all of its dependencies
We can use the following command to remove dh-strip-nondeterminism
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge dh-strip-nondeterminism
Dependencies
dh-strip-nondeterminism have the following dependencies:
References
Summary
In this tutorial we learn how to install dh-strip-nondeterminism
package on Ubuntu using different package management tools: apt, apt-get and aptitude.