How To Install python-sabyenc on Ubuntu 18.04

In this tutorial we learn how to install python-sabyenc on Ubuntu 18.04. python-sabyenc is yEnc extension for Python, optimized for Usenet

Introduction

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

What is python-sabyenc

python-sabyenc is:

Modified version of the original python-yenc module by Alessandro Duca, optimized for use within SABnzbd. The module was extended to do header parsing and full yEnc decoding from a Python list of chunks, the way in which data is retrieved from usenet.

This is particularly beneficial when SSL is enabled, which limits the size of each chunk to 16K. Parsing these chunks in Python is much more costly. Additionally, this module releases Python’s GIL during decoding, greatly increasing performance of the overall download process.

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

sudo apt-get -y install python-sabyenc

Install python-sabyenc Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-sabyenc

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

sudo aptitude -y install python-sabyenc

How To Uninstall python-sabyenc on Ubuntu 18.04

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

sudo apt-get remove python-sabyenc

Uninstall python-sabyenc And Its Dependencies

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

sudo apt-get -y autoremove python-sabyenc

Remove python-sabyenc Configurations and Data

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

sudo apt-get -y purge python-sabyenc

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

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

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

References

Summary

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