How To Install luma.led-matrix-doc on Ubuntu 22.04
Introduction
In this tutorial we learn how to install luma.led-matrix-doc on Ubuntu 22.04.
What is luma.led-matrix-doc
luma.led-matrix-doc is:
Library interfacing LED matrix displays with the MAX7219 driver (using SPI), WS2812 (NeoPixels, inc Pimoroni Unicorn pHat/Hat and Unicorn Hat HD) and APA102 (DotStar) on the Raspberry Pi and other Linux-based single board computers - it providesxi a Pillow-compatible drawing canvas, and other functionality to support: multiple cascaded devices LED matrix, seven-segment and NeoPixel variants scrolling/panning capability, terminal-style printing, state management, dithering to monochrome, pygame emulator Package contains documentation
There are three methods to install luma.led-matrix-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.led-matrix-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.led-matrix-doc using apt-get by running the following command:
sudo apt-get -y install luma.led-matrix-doc
Install luma.led-matrix-doc Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install luma.led-matrix-doc using apt by running the following command:
sudo apt -y install luma.led-matrix-doc
Install luma.led-matrix-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.led-matrix-doc using aptitude by running the following command:
sudo aptitude -y install luma.led-matrix-doc
How To Uninstall luma.led-matrix-doc on Ubuntu 22.04
To uninstall only the luma.led-matrix-doc package we can use the following command:
sudo apt-get remove luma.led-matrix-doc
Uninstall luma.led-matrix-doc And Its Dependencies
To uninstall luma.led-matrix-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.led-matrix-doc
Remove luma.led-matrix-doc Configurations and Data
To remove luma.led-matrix-doc configuration and data from Ubuntu 22.04 we can use the following command:
sudo apt-get -y purge luma.led-matrix-doc
Remove luma.led-matrix-doc configuration, data, and all of its dependencies
We can use the following command to remove luma.led-matrix-doc configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge luma.led-matrix-doc
References
Summary
In this tutorial we learn how to install luma.led-matrix-doc package on Ubuntu 22.04 using different package management tools: apt, apt-get and aptitude.