How To Install libqrencode-dev on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libqrencode-dev
on Ubuntu 20.04.
What is libqrencode-dev
libqrencode-dev 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 development files (a header, pkg-config settings, etc.)
There are three methods to install libqrencode-dev
on Ubuntu 20.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 libqrencode-dev Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libqrencode-dev
using apt-get
by running the following command:
sudo apt-get -y install libqrencode-dev
Install libqrencode-dev Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libqrencode-dev
using apt
by running the following command:
sudo apt -y install libqrencode-dev
Install libqrencode-dev 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 libqrencode-dev
using aptitude
by running the following command:
sudo aptitude -y install libqrencode-dev
How To Uninstall libqrencode-dev on Ubuntu 20.04
To uninstall only the libqrencode-dev
package we can use the following command:
sudo apt-get remove libqrencode-dev
Uninstall libqrencode-dev And Its Dependencies
To uninstall libqrencode-dev
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libqrencode-dev
Remove libqrencode-dev Configurations and Data
To remove libqrencode-dev
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libqrencode-dev
Remove libqrencode-dev configuration, data, and all of its dependencies
We can use the following command to remove libqrencode-dev
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libqrencode-dev
References
Summary
In this tutorial we learn how to install libqrencode-dev
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.