How To Install libsam-extract-dev on Debian 12

Learn how to install libsam-extract-dev on Debian 12 with this tutorial. libsam-extract-dev is SAM extraction module of ncbi-vdb library (devel)

Introduction

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

What is libsam-extract-dev

libsam-extract-dev is:

The (US) National Center for Biotechnology Information (NCBI)’s Virtual/Vertical Database (VDB) is a highly compressed column-oriented data warehousing technology developed initially to address the needs of the Sequence Read Archive (SRA). It is unique in that it builds databases from smaller parts that can function independently as documents, supports effective and efficient compression, supports encryption while remaining encrypted on disk, transparent distribution and remote access.

This library is part of the ncbi-vdb package and provides development files for extracting Sequence/Alignment Map (SAM) files.

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

sudo apt-get -y install libsam-extract-dev

Install libsam-extract-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libsam-extract-dev

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

sudo aptitude -y install libsam-extract-dev

How To Uninstall libsam-extract-dev on Debian 12

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

sudo apt-get remove libsam-extract-dev

Uninstall libsam-extract-dev And Its Dependencies

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

sudo apt-get -y autoremove libsam-extract-dev

Remove libsam-extract-dev Configurations and Data

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

sudo apt-get -y purge libsam-extract-dev

Remove libsam-extract-dev configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libsam-extract-dev

Dependencies

libsam-extract-dev have the following dependencies:

References

Summary

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