How To Install python-flup on Ubuntu 18.04

In this tutorial we learn how to install python-flup on Ubuntu 18.04. python-flup is Implements Python Web Server Gateway Interface (WSGI)

Introduction

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

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 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-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 Ubuntu. 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 Ubuntu 18.04

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 Ubuntu 18.04, 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 Ubuntu 18.04 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

References

Summary

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