How To Install python3-yowsup on Ubuntu 22.04

In this tutorial we learn how to install python3-yowsup on Ubuntu 22.04. python3-yowsup is Python 3 library to implement a WhatsApp client

Introduction

In this tutorial we learn how to install python3-yowsup on Ubuntu 22.04.

What is python3-yowsup

python3-yowsup 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.

python3-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.

The package yowsup-cli is a good example of the python-yowsup implementation.

There are three methods to install python3-yowsup on Ubuntu 22.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 python3-yowsup Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

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

sudo apt-get -y install python3-yowsup

Install python3-yowsup Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python3-yowsup

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

sudo aptitude -y install python3-yowsup

How To Uninstall python3-yowsup on Ubuntu 22.04

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

sudo apt-get remove python3-yowsup

Uninstall python3-yowsup And Its Dependencies

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

sudo apt-get -y autoremove python3-yowsup

Remove python3-yowsup Configurations and Data

To remove python3-yowsup configuration and data from Ubuntu 22.04 we can use the following command:

sudo apt-get -y purge python3-yowsup

Remove python3-yowsup configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge python3-yowsup

References

Summary

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