How To Install python3-pbr on Debian 9

In this tutorial we learn how to install python3-pbr on Debian 9. python3-pbr is inject useful and sensible default behaviors into setuptools - Python 3.x

Introduction

In this tutorial we learn how to install python3-pbr on Debian 9.

What is python3-pbr

python3-pbr is:

PBR (Python Build Reasonableness) is a library that injects some useful and sensible default behaviors into your setuptools run. PBR can:

  • Manage version number based on git revisions and tags (Version file).
  • Generate AUTHORS file from git log
  • Generate ChangeLog from git log
  • Generate Sphinx autodoc stub files for your whole module
  • Store your dependencies in a pip requirements file
  • Use your README file as a long_description
  • Smartly find packages under your root package

PBR is only mildly configurable. The basic idea is that there’s a decent way to run things and if you do, you should reap the rewards, because then it’s simple and repeatable. If you want to do things differently, cool! But you’ve already got the power of Python at your fingertips, so you don’t really need PBR.

PBR builds on top of the work that d2to1 started to provide for declarative configuration. d2to1 is itself an implementation of the ideas behind distutils2. Although distutils2 is now abandoned in favor of work towards PEP 426 and Metadata 2.0, declarative config is still a great idea and specifically important in trying to distribute setup code as a library when that library itself will alter how the setup is processed. As Metadata 2.0 and other modern Python packaging PEPs come out, PBR aims to support them as quickly as possible.

This package provides support for Python 3.x.

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

Install python3-pbr Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install python3-pbr

Install python3-pbr Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python3-pbr

Install python3-pbr 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 python3-pbr using aptitude by running the following command:

sudo aptitude -y install python3-pbr

How To Uninstall python3-pbr on Debian 9

To uninstall only the python3-pbr package we can use the following command:

sudo apt-get remove python3-pbr

Uninstall python3-pbr And Its Dependencies

To uninstall python3-pbr and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove python3-pbr

Remove python3-pbr Configurations and Data

To remove python3-pbr configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge python3-pbr

Remove python3-pbr configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge python3-pbr

Dependencies

python3-pbr have the following dependencies:

References

Summary

In this tutorial we learn how to install python3-pbr package on Debian 9 using different package management tools: apt, apt-get and aptitude.