How To Install reprotest on Fedora 34

reprotest is Build packages and check them for reproducibility

Introduction

In this tutorial we learn how to install reprotest on Fedora 34.

What is reprotest

reprotest builds the same source code twice in different environments, and then checks the binaries produced by each build for differences. If any are found, then diffoscope (or if unavailable then diff) is used to display them in detail for later analysis. It supports different types of environment such as a “null” environment (i.e. doing the builds directly in /tmp) or various other virtual servers, for example schroot, ssh, qemu, and several others. reprotest is developed as part of the “reproducible builds” Debian project.

We can use yum or dnf to install reprotest on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install reprotest.

Install reprotest on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install reprotest using dnf by running the following command:

sudo dnf -y install reprotest

Install reprotest on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install reprotest using yum by running the following command:

sudo yum -y install reprotest

How To Uninstall reprotest on Fedora 34

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

sudo dnf remove reprotest

reprotest Package Contents on Fedora 34

/usr/bin/reprotest
/usr/lib/python3.9/site-packages/reprotest
/usr/lib/python3.9/site-packages/reprotest-0.7.16-py3.9.egg-info
/usr/lib/python3.9/site-packages/reprotest-0.7.16-py3.9.egg-info/PKG-INFO
/usr/lib/python3.9/site-packages/reprotest-0.7.16-py3.9.egg-info/SOURCES.txt
/usr/lib/python3.9/site-packages/reprotest-0.7.16-py3.9.egg-info/dependency_links.txt
/usr/lib/python3.9/site-packages/reprotest-0.7.16-py3.9.egg-info/entry_points.txt
/usr/lib/python3.9/site-packages/reprotest-0.7.16-py3.9.egg-info/not-zip-safe
/usr/lib/python3.9/site-packages/reprotest-0.7.16-py3.9.egg-info/requires.txt
/usr/lib/python3.9/site-packages/reprotest-0.7.16-py3.9.egg-info/top_level.txt
/usr/lib/python3.9/site-packages/reprotest/__init__.py
/usr/lib/python3.9/site-packages/reprotest/__main__.py
/usr/lib/python3.9/site-packages/reprotest/__pycache__
/usr/lib/python3.9/site-packages/reprotest/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/reprotest/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/reprotest/__pycache__/__main__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/reprotest/__pycache__/__main__.cpython-39.pyc
/usr/lib/python3.9/site-packages/reprotest/__pycache__/build.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/reprotest/__pycache__/build.cpython-39.pyc
/usr/lib/python3.9/site-packages/reprotest/__pycache__/environ.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/reprotest/__pycache__/environ.cpython-39.pyc
/usr/lib/python3.9/site-packages/reprotest/__pycache__/mdiffconf.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/reprotest/__pycache__/mdiffconf.cpython-39.pyc
/usr/lib/python3.9/site-packages/reprotest/__pycache__/presets.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/reprotest/__pycache__/presets.cpython-39.pyc
/usr/lib/python3.9/site-packages/reprotest/__pycache__/shell_syn.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/reprotest/__pycache__/shell_syn.cpython-39.pyc
/usr/lib/python3.9/site-packages/reprotest/__pycache__/utils.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/reprotest/__pycache__/utils.cpython-39.pyc
/usr/lib/python3.9/site-packages/reprotest/build.py
/usr/lib/python3.9/site-packages/reprotest/environ.py
/usr/lib/python3.9/site-packages/reprotest/lib
/usr/lib/python3.9/site-packages/reprotest/lib/VirtSubproc.py
/usr/lib/python3.9/site-packages/reprotest/lib/__init__.py
/usr/lib/python3.9/site-packages/reprotest/lib/__pycache__
/usr/lib/python3.9/site-packages/reprotest/lib/__pycache__/VirtSubproc.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/reprotest/lib/__pycache__/VirtSubproc.cpython-39.pyc
/usr/lib/python3.9/site-packages/reprotest/lib/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/reprotest/lib/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/reprotest/lib/__pycache__/adt_testbed.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/reprotest/lib/__pycache__/adt_testbed.cpython-39.pyc
/usr/lib/python3.9/site-packages/reprotest/lib/__pycache__/adtlog.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/reprotest/lib/__pycache__/adtlog.cpython-39.pyc
/usr/lib/python3.9/site-packages/reprotest/lib/adt_testbed.py
/usr/lib/python3.9/site-packages/reprotest/lib/adtlog.py
/usr/lib/python3.9/site-packages/reprotest/lib/system_interface
/usr/lib/python3.9/site-packages/reprotest/lib/system_interface/__init__.py
/usr/lib/python3.9/site-packages/reprotest/lib/system_interface/__pycache__
/usr/lib/python3.9/site-packages/reprotest/lib/system_interface/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/reprotest/lib/system_interface/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/reprotest/lib/system_interface/__pycache__/arch.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/reprotest/lib/system_interface/__pycache__/arch.cpython-39.pyc
/usr/lib/python3.9/site-packages/reprotest/lib/system_interface/__pycache__/debian.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/reprotest/lib/system_interface/__pycache__/debian.cpython-39.pyc
/usr/lib/python3.9/site-packages/reprotest/lib/system_interface/__pycache__/fedora.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/reprotest/lib/system_interface/__pycache__/fedora.cpython-39.pyc
/usr/lib/python3.9/site-packages/reprotest/lib/system_interface/__pycache__/guix.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/reprotest/lib/system_interface/__pycache__/guix.cpython-39.pyc
/usr/lib/python3.9/site-packages/reprotest/lib/system_interface/arch.py
/usr/lib/python3.9/site-packages/reprotest/lib/system_interface/debian.py
/usr/lib/python3.9/site-packages/reprotest/lib/system_interface/fedora.py
/usr/lib/python3.9/site-packages/reprotest/lib/system_interface/guix.py
/usr/lib/python3.9/site-packages/reprotest/mdiffconf.py
/usr/lib/python3.9/site-packages/reprotest/presets.py
/usr/lib/python3.9/site-packages/reprotest/shell_syn.py
/usr/lib/python3.9/site-packages/reprotest/utils.py
/usr/lib/python3.9/site-packages/reprotest/virt
/usr/lib/python3.9/site-packages/reprotest/virt/autopkgtest-virt-chroot
/usr/lib/python3.9/site-packages/reprotest/virt/autopkgtest-virt-lxc
/usr/lib/python3.9/site-packages/reprotest/virt/autopkgtest-virt-lxd
/usr/lib/python3.9/site-packages/reprotest/virt/autopkgtest-virt-null
/usr/lib/python3.9/site-packages/reprotest/virt/autopkgtest-virt-qemu
/usr/lib/python3.9/site-packages/reprotest/virt/autopkgtest-virt-schroot
/usr/lib/python3.9/site-packages/reprotest/virt/autopkgtest-virt-ssh
/usr/share/doc/reprotest
/usr/share/doc/reprotest/README.rst

References

Summary

In this tutorial we learn how to install reprotest on Fedora 34 using yum and dnf.