How To Install libqrencode3 on Ubuntu 18.04

In this tutorial we learn how to install libqrencode3 on Ubuntu 18.04. libqrencode3 is QR Code encoding library

Introduction

In this tutorial we learn how to install libqrencode3 on Ubuntu 18.04.

What is libqrencode3

libqrencode3 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 libqrencode3 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 libqrencode3 Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install libqrencode3

Install libqrencode3 Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libqrencode3

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

sudo aptitude -y install libqrencode3

How To Uninstall libqrencode3 on Ubuntu 18.04

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

sudo apt-get remove libqrencode3

Uninstall libqrencode3 And Its Dependencies

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

sudo apt-get -y autoremove libqrencode3

Remove libqrencode3 Configurations and Data

To remove libqrencode3 configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libqrencode3

Remove libqrencode3 configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libqrencode3

References

Summary

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