How To Install python-pbr on Debian 10

Learn how to install python-pbr on Debian 10 with this tutorial. python-pbr is inject useful and sensible default behaviors into setuptools - Python 2.x

Introduction

In this tutorial we learn how to install python-pbr on Debian 10.

What is python-pbr

python-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 2.x.

There are three methods to install python-pbr 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 python-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 python-pbr using apt-get by running the following command:

sudo apt-get -y install python-pbr

Install python-pbr Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-pbr

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

sudo aptitude -y install python-pbr

How To Uninstall python-pbr on Debian 10

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

sudo apt-get remove python-pbr

Uninstall python-pbr And Its Dependencies

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

sudo apt-get -y autoremove python-pbr

Remove python-pbr Configurations and Data

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

sudo apt-get -y purge python-pbr

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

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

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

Dependencies

python-pbr have the following dependencies:

References

Summary

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