How To Install libdmtx-dev on Debian 12

Learn how to install libdmtx-dev on Debian 12 with this tutorial. libdmtx-dev is Data Matrix barcodes (development files and static libraries)

Introduction

In this tutorial we learn how to install libdmtx-dev on Debian 12.

What is libdmtx-dev

libdmtx-dev is:

Libdmtx is a library for reading and writing Data Matrix 2D barcodes, two-dimensional symbols that hold a dense pattern of data with built-in error correction.

This package contains the static libraries and C header files needed for development of applications with Libdmtx.

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

Install libdmtx-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 libdmtx-dev using apt-get by running the following command:

sudo apt-get -y install libdmtx-dev

Install libdmtx-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libdmtx-dev

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

sudo aptitude update

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

sudo aptitude -y install libdmtx-dev

How To Uninstall libdmtx-dev on Debian 12

To uninstall only the libdmtx-dev package we can use the following command:

sudo apt-get remove libdmtx-dev

Uninstall libdmtx-dev And Its Dependencies

To uninstall libdmtx-dev and its dependencies that are no longer needed by Debian 12, we can use the command below:

sudo apt-get -y autoremove libdmtx-dev

Remove libdmtx-dev Configurations and Data

To remove libdmtx-dev configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge libdmtx-dev

Remove libdmtx-dev configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libdmtx-dev

Dependencies

libdmtx-dev have the following dependencies:

References

Summary

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