How To Install libsam-extract3 on Debian 12

Learn how to install libsam-extract3 on Debian 12 with this tutorial. libsam-extract3 is SAM extraction module of ncbi-vdb library

Introduction

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

What is libsam-extract3

libsam-extract3 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 an interface for extracting Sequence/Alignment Map (SAM) files.

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

sudo apt-get -y install libsam-extract3

Install libsam-extract3 Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libsam-extract3

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

sudo aptitude -y install libsam-extract3

How To Uninstall libsam-extract3 on Debian 12

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

sudo apt-get remove libsam-extract3

Uninstall libsam-extract3 And Its Dependencies

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

sudo apt-get -y autoremove libsam-extract3

Remove libsam-extract3 Configurations and Data

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

sudo apt-get -y purge libsam-extract3

Remove libsam-extract3 configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libsam-extract3

Dependencies

libsam-extract3 have the following dependencies:

References

Summary

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