How To Install python-stdeb on Ubuntu 18.04

In this tutorial we learn how to install python-stdeb on Ubuntu 18.04. python-stdeb is Python to Debian source package conversion utility

Introduction

In this tutorial we learn how to install python-stdeb on Ubuntu 18.04.

What is python-stdeb

python-stdeb is:

This package provides some tools to produce Debian packages from Python packages via a new distutils command, sdist_dsc. Automatic defaults are provided for the Debian package, but many aspects of the resulting package can be customized via a configuration file.

  • pypi-install will query the Python Package Index (PyPI) for a package, download it, create a .deb from it, and then install the .deb.
  • py2dsc will convert a distutils-built source tarball into a Debian source package.
  • py2dsc-deb is like py2dsc, but will additionally build binary package
  • pypi-download will download upstream tarball from PyPI

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

sudo apt-get -y install python-stdeb

Install python-stdeb Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-stdeb

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

sudo aptitude -y install python-stdeb

How To Uninstall python-stdeb on Ubuntu 18.04

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

sudo apt-get remove python-stdeb

Uninstall python-stdeb And Its Dependencies

To uninstall python-stdeb and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove python-stdeb

Remove python-stdeb Configurations and Data

To remove python-stdeb configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge python-stdeb

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

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

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

References

Summary

In this tutorial we learn how to install python-stdeb package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.