How To Install libcds2.3.3 on Debian 12

Learn how to install libcds2.3.3 on Debian 12 with this tutorial. libcds2.3.3 is Concurrent Data Structures (CDS) library

Introduction

In this tutorial we learn how to install libcds2.3.3 on Debian 12.

What is libcds2.3.3

libcds2.3.3 is:

The Concurrent Data Structures (CDS) library is a collection of concurrent containers that don’t require external (manual) synchronization for shared access, and safe memory reclamation (SMR) algorithms like Hazard Pointer and user-space RCU that is used as an epoch-based SMR.

CDS is mostly header-only template library. Only SMR core implementation is segregated to .so/.dll file.

The library contains the implementations of the following containers:

- lock-free stack with optional elimination support
- several algo for lock-free queue, including classic Michael & Scott
  algorithm and its derivatives, the flat combining queue, the
  segmented queue.
- several implementation of unordered set/map - lock-free and
  fine-grained lock-based
- flat-combining technique
- lock-free skip-list
- lock-free FeldmanHashMap/Set Multi-Level Array Hash with thread-safe
  bidirectional iterator support Bronson's et al algorithm for
  fine-grained lock-based AVL tree

Generally, each container has an intrusive and non-intrusive (STL-like) version belonging to cds::intrusive and cds::container namespace respectively.

There are three methods to install libcds2.3.3 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 libcds2.3.3 Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install libcds2.3.3

Install libcds2.3.3 Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libcds2.3.3 using apt by running the following command:

sudo apt -y install libcds2.3.3

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

sudo aptitude -y install libcds2.3.3

How To Uninstall libcds2.3.3 on Debian 12

To uninstall only the libcds2.3.3 package we can use the following command:

sudo apt-get remove libcds2.3.3

Uninstall libcds2.3.3 And Its Dependencies

To uninstall libcds2.3.3 and its dependencies that are no longer needed by Debian 12, we can use the command below:

sudo apt-get -y autoremove libcds2.3.3

Remove libcds2.3.3 Configurations and Data

To remove libcds2.3.3 configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge libcds2.3.3

Remove libcds2.3.3 configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libcds2.3.3

Dependencies

libcds2.3.3 have the following dependencies:

References

Summary

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