How To Install htslib on Fedora 34

htslib is C library for high-throughput sequencing data formats C library for high-throughput sequencing data formats

Introduction

In this tutorial we learn how to install htslib on Fedora 34.

What is htslib

HTSlib is an implementation of a unified C library for accessing common file formats, such as SAM, CRAM and VCF, used for high-throughput sequencing data, and is the core library used by samtools and bcftools. htslib 1.9 8.fc34 x86_64 352 k htslib-1.9-8.fc34.src.rpm fedora C library for high-throughput sequencing data formats http MIT and BSD HTSlib is an implementation of a unified C library for accessing common file formats, such as SAM, CRAM and VCF, used for high-throughput sequencing data, and is the core library used by samtools and bcftools.

We can use yum or dnf to install htslib on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install htslib.

Install htslib on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install htslib using dnf by running the following command:

sudo dnf -y install htslib

Install htslib on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install htslib using yum by running the following command:

sudo yum -y install htslib

How To Uninstall htslib on Fedora 34

To uninstall only the htslib package we can use the following command:

sudo dnf remove htslib

htslib Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/03
/usr/lib/.build-id/03/a8ca0b48ecacef66df23f8299b399250d3033e
/usr/lib/.build-id/67
/usr/lib/.build-id/67/b017a26e8db6f68e4fddf1ca9acdee6c3fd89d
/usr/lib/.build-id/8e
/usr/lib/.build-id/8e/a8712b5d4f2d005cebd2ac79aa68a3a955af18
/usr/lib/.build-id/c1
/usr/lib/.build-id/c1/32e39f3d14bed742b13a608ad7fcd2ee86ae03
/usr/lib/libhts.so.1.9
/usr/lib/libhts.so.2
/usr/libexec/htslib
/usr/libexec/htslib/hfile_gcs.so
/usr/libexec/htslib/hfile_libcurl.so
/usr/libexec/htslib/hfile_s3.so
/usr/share/doc/htslib
/usr/share/doc/htslib/NEWS
/usr/share/licenses/htslib
/usr/share/licenses/htslib/LICENSE
/usr/share/man/man5/faidx.5.gz
/usr/share/man/man5/sam.5.gz
/usr/share/man/man5/vcf.5.gz
/usr/lib/.build-id
/usr/lib/.build-id/26
/usr/lib/.build-id/26/2c3feb02c29d5f2e5a13a05b517588a8012a93
/usr/lib/.build-id/2b
/usr/lib/.build-id/2b/02580d33ed6cf5cf323475579987f617985f0f
/usr/lib/.build-id/82
/usr/lib/.build-id/82/849342276a857d28faf0f8afb965ff97ce2335
/usr/lib/.build-id/f9
/usr/lib/.build-id/f9/e1b6000d44ab3a82133454972b53bccd36ca67
/usr/lib64/libhts.so.1.9
/usr/lib64/libhts.so.2
/usr/libexec/htslib
/usr/libexec/htslib/hfile_gcs.so
/usr/libexec/htslib/hfile_libcurl.so
/usr/libexec/htslib/hfile_s3.so
/usr/share/doc/htslib
/usr/share/doc/htslib/NEWS
/usr/share/licenses/htslib
/usr/share/licenses/htslib/LICENSE
/usr/share/man/man5/faidx.5.gz
/usr/share/man/man5/sam.5.gz
/usr/share/man/man5/vcf.5.gz

References

Summary

In this tutorial we learn how to install htslib on Fedora 34 using yum and dnf.