How To Install python-oerplib on Debian 9

In this tutorial we learn how to install python-oerplib on Debian 9. python-oerplib is Python client library to Odoo server

Introduction

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

What is python-oerplib

python-oerplib is:

OERPLib is a client library to Odoo (formerly OpenERP or TinyERP) server. It aims to provide an easy way to remotely pilot and manage an Odoo server.

It support both protocols XML-RPC and NET-RPC to communicate with Odoo, and provides convenients methods to manage data records (browse operation implemented). Other functionalities such as downloading reports, workflow queries and databases management are provided.

Note, that there is a newer library by the same author, OdooRPC, which also supports Python 3 and uses JSON-RPC.

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

sudo apt-get -y install python-oerplib

Install python-oerplib Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-oerplib

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

sudo aptitude -y install python-oerplib

How To Uninstall python-oerplib on Debian 9

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

sudo apt-get remove python-oerplib

Uninstall python-oerplib And Its Dependencies

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

sudo apt-get -y autoremove python-oerplib

Remove python-oerplib Configurations and Data

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

sudo apt-get -y purge python-oerplib

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

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

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

Dependencies

python-oerplib have the following dependencies:

References

Summary

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