How To Install python-flup on Debian 10

Learn how to install python-flup on Debian 10 with this tutorial. python-flup is Implements Python Web Server Gateway Interface (WSGI)

Introduction

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

What is python-flup

python-flup is:

Implements the standard interface between Python Web applications and Web servers, as described in PEP 333, http://www.python.org/dev/peps/pep-0333 Speaks:

  • AJP - Apache JServ Protocol 1.3
  • FastCGI, see http://www.fastcgi.com/
  • SCGI - Simple Common Gateway Interface alternative

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

sudo apt-get -y install python-flup

Install python-flup Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-flup

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

sudo aptitude -y install python-flup

How To Uninstall python-flup on Debian 10

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

sudo apt-get remove python-flup

Uninstall python-flup And Its Dependencies

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

sudo apt-get -y autoremove python-flup

Remove python-flup Configurations and Data

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

sudo apt-get -y purge python-flup

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

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

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

Dependencies

python-flup have the following dependencies:

References

Summary

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