How To Install libhtscodecs-dev on Debian 12

Learn how to install libhtscodecs-dev on Debian 12 with this tutorial. libhtscodecs-dev is Development headers for custom compression for CRAM and others

Introduction

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

What is libhtscodecs-dev

libhtscodecs-dev is:

This library implements the custom CRAM codecs used for “EXTERNAL” block types. These consist of two variants of the rANS codec (8-bit and 16-bit renormalisation, with run-length encoding and bit-packing also supported in the latter), a dynamic arithmetic coder, and custom codecs for name/ID compression and quality score compression derived from fqzcomp.

They come with small command line test tools to act as both compression exploration programs and as part of the test harness.

This package contains the development headers

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

sudo apt-get -y install libhtscodecs-dev

Install libhtscodecs-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libhtscodecs-dev

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

sudo aptitude -y install libhtscodecs-dev

How To Uninstall libhtscodecs-dev on Debian 12

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

sudo apt-get remove libhtscodecs-dev

Uninstall libhtscodecs-dev And Its Dependencies

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

sudo apt-get -y autoremove libhtscodecs-dev

Remove libhtscodecs-dev Configurations and Data

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

sudo apt-get -y purge libhtscodecs-dev

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

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

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

Dependencies

libhtscodecs-dev have the following dependencies:

References

Summary

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