How To Install libhtscodecs2 on Ubuntu
Posted on April 1, 2023  (Last modified on May 20, 2023 )
2 minutes • 399 words
Introduction
In this tutorial we learn how to install libhtscodecs2
on Ubuntu.
What is libhtscodecs2
libhtscodecs2 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.
There are three methods to install libhtscodecs2
on Ubuntu. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install libhtscodecs2 Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libhtscodecs2
using apt-get
by running the following command:
sudo apt-get -y install libhtscodecs2
Install libhtscodecs2 Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libhtscodecs2
using apt
by running the following command:
sudo apt -y install libhtscodecs2
Install libhtscodecs2 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 Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install libhtscodecs2
using aptitude
by running the following command:
sudo aptitude -y install libhtscodecs2
How To Uninstall libhtscodecs2 on Ubuntu
To uninstall only the libhtscodecs2
package we can use the following command:
sudo apt-get remove libhtscodecs2
Uninstall libhtscodecs2 And Its Dependencies
To uninstall libhtscodecs2
and its dependencies that are no longer needed by Ubuntu, we can use the command below:
sudo apt-get -y autoremove libhtscodecs2
Remove libhtscodecs2 Configurations and Data
To remove libhtscodecs2
configuration and data from Ubuntu we can use the following command:
sudo apt-get -y purge libhtscodecs2
Remove libhtscodecs2 configuration, data, and all of its dependencies
We can use the following command to remove libhtscodecs2
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libhtscodecs2
Dependencies
libhtscodecs2 have the following dependencies:
References
Summary
In this tutorial we learn how to install libhtscodecs2
package on Ubuntu using different package management tools: apt, apt-get and aptitude.