How To Install libcxx-serial-dev on Debian 12

Learn how to install libcxx-serial-dev on Debian 12 with this tutorial. libcxx-serial-dev is Cross-platform, Serial Port library written in C++ (devel)

Introduction

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

What is libcxx-serial-dev

libcxx-serial-dev is:

A cross-platform library for interfacing with rs-232 serial like ports written in C++. It provides a modern C++ interface with a workflow designed to look and feel like PySerial, but with the speed and control provided by C++.

The upstream package name is serial. The Debian package is named cxx-serial to avoid a name conflict.

Serial is a class that provides the basic interface common to serial libraries (open, close, read, write, etc..) and requires no extra dependencies. It also provides tight control over timeouts and control over handshaking lines.

This package contains the development files (headers, unversioned so-librarie, pkg-config .pc file) and also some developer documentation.

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

sudo apt-get -y install libcxx-serial-dev

Install libcxx-serial-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libcxx-serial-dev

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

sudo aptitude -y install libcxx-serial-dev

How To Uninstall libcxx-serial-dev on Debian 12

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

sudo apt-get remove libcxx-serial-dev

Uninstall libcxx-serial-dev And Its Dependencies

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

sudo apt-get -y autoremove libcxx-serial-dev

Remove libcxx-serial-dev Configurations and Data

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

sudo apt-get -y purge libcxx-serial-dev

Remove libcxx-serial-dev configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libcxx-serial-dev

Dependencies

libcxx-serial-dev have the following dependencies:

References

Summary

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