How To Install python-yowsup-common on Ubuntu 18.04

In this tutorial we learn how to install python-yowsup-common on Ubuntu 18.04. python-yowsup-common is library to implement a WhatsApp client (common files)

Introduction

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

What is python-yowsup-common

python-yowsup-common is:

WhatsApp Messenger is a cross-platform mobile messaging app which allows you to exchange messages, via Internet, without having to pay for SMS, using a mobile phone.

In addition to basic messaging, WhatsApp users can create groups, send each other unlimited images, video and audio media messages.

Yowsup is a cross platform Python library that enable to do all the previous in your own app. Yowsup allows you to login and use the WhatsApp service, providing all capabilities of an official WhatsApp client, allowing to create a full-fledged custom WhatsApp client.

python-yowsup has these features: - Registration. - Text send/receive. - Encryption of messages. - Media send/receive (images, videos, audio, location, contact cards). - Groups(create, leave, join, update picture, updating subject). - Fetch user profile picture. - Fetch user status. - Set profile picture. - Set group icon. - Set status and others.

This package contains common files for python-yowsup.

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

sudo apt-get -y install python-yowsup-common

Install python-yowsup-common Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-yowsup-common

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

sudo aptitude -y install python-yowsup-common

How To Uninstall python-yowsup-common on Ubuntu 18.04

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

sudo apt-get remove python-yowsup-common

Uninstall python-yowsup-common And Its Dependencies

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

sudo apt-get -y autoremove python-yowsup-common

Remove python-yowsup-common Configurations and Data

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

sudo apt-get -y purge python-yowsup-common

Remove python-yowsup-common configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge python-yowsup-common

References

Summary

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