How To Install luma.oled-doc on Ubuntu 22.04

In this tutorial we learn how to install luma.oled-doc on Ubuntu 22.04. luma.oled-doc is doc for library interfacing OLED matrix displays

Introduction

In this tutorial we learn how to install luma.oled-doc on Ubuntu 22.04.

What is luma.oled-doc

luma.oled-doc is:

Library interfacing OLED matrix displays with the SSD1306, SSD1309, SSD1322, SSD1325, SSD1327, SSD1331, SSD1351, SH1106 or WS0010 driver using I2C/SPI/Parallel on the Raspberry Pi and other linux-based single-board computers - it provides a Pillow-compatible drawing canvas, and other functionality to support: scrolling/panning capability, terminal-style printing, state management, color/greyscale (where supported), dithering to monochrome

There are three methods to install luma.oled-doc 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 luma.oled-doc Using apt-get

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

sudo apt-get update

After updating apt database, We can install luma.oled-doc using apt-get by running the following command:

sudo apt-get -y install luma.oled-doc

Install luma.oled-doc Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install luma.oled-doc using apt by running the following command:

sudo apt -y install luma.oled-doc

Install luma.oled-doc 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 luma.oled-doc using aptitude by running the following command:

sudo aptitude -y install luma.oled-doc

How To Uninstall luma.oled-doc on Ubuntu 22.04

To uninstall only the luma.oled-doc package we can use the following command:

sudo apt-get remove luma.oled-doc

Uninstall luma.oled-doc And Its Dependencies

To uninstall luma.oled-doc and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:

sudo apt-get -y autoremove luma.oled-doc

Remove luma.oled-doc Configurations and Data

To remove luma.oled-doc configuration and data from Ubuntu 22.04 we can use the following command:

sudo apt-get -y purge luma.oled-doc

Remove luma.oled-doc configuration, data, and all of its dependencies

We can use the following command to remove luma.oled-doc configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge luma.oled-doc

References

Summary

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