How To Install python-owslib on Debian 9

In this tutorial we learn how to install python-owslib on Debian 9. python-owslib is Client library for Open Geospatial (OGC) web services (Python 2)

Introduction

In this tutorial we learn how to install python-owslib on Debian 9.

What is python-owslib

python-owslib is:

OWSLib is a Python package for client programming with Open Geospatial Consortium (OGC) web service (hence OWS) interface standards, and their related content models.

Full documentation is available at http://geopython.github.io/OWSLib

OWSLib provides a common API for accessing service metadata and wrappers for numerous OGC Web Service interfaces.

This package provides the Python 2 version of the library.

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

sudo apt-get -y install python-owslib

Install python-owslib Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-owslib

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

sudo aptitude -y install python-owslib

How To Uninstall python-owslib on Debian 9

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

sudo apt-get remove python-owslib

Uninstall python-owslib And Its Dependencies

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

sudo apt-get -y autoremove python-owslib

Remove python-owslib Configurations and Data

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

sudo apt-get -y purge python-owslib

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

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

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

Dependencies

python-owslib have the following dependencies:

References

Summary

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