How To Install libtoml11-dev on Debian 12

Learn how to install libtoml11-dev on Debian 12 with this tutorial. libtoml11-dev is TOML parser/encoder

Introduction

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

What is libtoml11-dev

libtoml11-dev is:

toml11: It is compatible to the latest version of TOML v1.0.0. It is one of the most TOML standard compliant libraries, tested with the language agnostic test suite for TOML parsers by BurntSushi. It shows highly informative error messages. You can see the error messages about invalid files at CircleCI. It has configurable container. You can use any random-access containers and key-value maps as backend containers. It optionally preserves comments without any overhead. It has configurable serializer that supports comments, inline tables, literal strings and multiline strings. It supports user-defined type conversion from/into toml values. It correctly handles UTF-8 sequences, with or without BOM, both on posix and Windows.

This package contains the development header files.

There are three methods to install libtoml11-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 libtoml11-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 libtoml11-dev using apt-get by running the following command:

sudo apt-get -y install libtoml11-dev

Install libtoml11-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libtoml11-dev

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

sudo aptitude -y install libtoml11-dev

How To Uninstall libtoml11-dev on Debian 12

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

sudo apt-get remove libtoml11-dev

Uninstall libtoml11-dev And Its Dependencies

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

sudo apt-get -y autoremove libtoml11-dev

Remove libtoml11-dev Configurations and Data

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

sudo apt-get -y purge libtoml11-dev

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

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

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

Dependencies

libtoml11-dev have the following dependencies:

References

Summary

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