How To Install libqrencode4 on Debian 11

In this tutorial we learn how to install libqrencode4 on Debian 11. libqrencode4 is QR Code encoding library

Introduction

In this tutorial we learn how to install libqrencode4 on Debian 11.

What is libqrencode4

libqrencode4 is:

Libqrencode is a library for encoding data in a QR Code symbol, a kind of 2D symbology that can be scanned by handy terminals such as a mobile phone with CCD. The capacity of QR Code is up to 7000 digits or 4000 characters, and has high robustness.

Libqrencode supports QR Code model 2, described in JIS (Japanese Industrial Standards) X0510:2004 or ISO/IEC 18004.

This package contains runtime libraries of libqrencode.

There are three methods to install libqrencode4 on Debian 11. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libqrencode4 Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install libqrencode4

Install libqrencode4 Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libqrencode4 using apt by running the following command:

sudo apt -y install libqrencode4

Install libqrencode4 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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libqrencode4 using aptitude by running the following command:

sudo aptitude -y install libqrencode4

How To Uninstall libqrencode4 on Debian 11

To uninstall only the libqrencode4 package we can use the following command:

sudo apt-get remove libqrencode4

Uninstall libqrencode4 And Its Dependencies

To uninstall libqrencode4 and its dependencies that are no longer needed by Debian 11, we can use the command below:

sudo apt-get -y autoremove libqrencode4

Remove libqrencode4 Configurations and Data

To remove libqrencode4 configuration and data from Debian 11 we can use the following command:

sudo apt-get -y purge libqrencode4

Remove libqrencode4 configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libqrencode4

Dependencies

libqrencode4 have the following dependencies:

References

Summary

In this tutorial we learn how to install libqrencode4 package on Debian 11 using different package management tools: apt, apt-get and aptitude.