How To Install htslib-devel on Rocky Linux 8

In this tutorial we learn how to install htslib-devel on Rocky Linux 8. htslib-devel is Development files for htslib

Introduction

In this tutorial we learn how to install htslib-devel on Rocky Linux 8.

What is htslib-devel

The htslib-devel package contains libraries and header files for developing applications that use htslib.

We can use yum or dnf to install htslib-devel on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install htslib-devel.

Install htslib-devel on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install htslib-devel

Install htslib-devel on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install htslib-devel

How To Uninstall htslib-devel on Rocky Linux 8

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

sudo dnf remove htslib-devel

htslib-devel Package Contents on Rocky Linux 8

/usr/include/htslib
/usr/include/htslib/bgzf.h
/usr/include/htslib/cram.h
/usr/include/htslib/faidx.h
/usr/include/htslib/hfile.h
/usr/include/htslib/hts.h
/usr/include/htslib/hts_defs.h
/usr/include/htslib/hts_endian.h
/usr/include/htslib/hts_log.h
/usr/include/htslib/hts_os.h
/usr/include/htslib/kbitset.h
/usr/include/htslib/kfunc.h
/usr/include/htslib/khash.h
/usr/include/htslib/khash_str2int.h
/usr/include/htslib/klist.h
/usr/include/htslib/knetfile.h
/usr/include/htslib/kseq.h
/usr/include/htslib/ksort.h
/usr/include/htslib/kstring.h
/usr/include/htslib/regidx.h
/usr/include/htslib/sam.h
/usr/include/htslib/synced_bcf_reader.h
/usr/include/htslib/tbx.h
/usr/include/htslib/thread_pool.h
/usr/include/htslib/vcf.h
/usr/include/htslib/vcf_sweep.h
/usr/include/htslib/vcfutils.h
/usr/lib64/libhts.so
/usr/lib64/pkgconfig/htslib.pc

References

Summary

In this tutorial we learn how to install htslib-devel on Rocky Linux 8 using yum and dnf.