How To Install sparsehash-devel on Rocky Linux 8

In this tutorial we learn how to install sparsehash-devel on Rocky Linux 8. sparsehash-devel is Extremely memory-efficient C++ hash_map implementation

Introduction

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

What is sparsehash-devel

The Google SparseHash project contains several C++ template hash-map implementations with different performance characteristics, including an implementation that optimizes for space and one that optimizes for speed.

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

Install sparsehash-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 sparsehash-devel using dnf by running the following command:

sudo dnf -y install sparsehash-devel

Install sparsehash-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 sparsehash-devel using yum by running the following command:

sudo yum -y install sparsehash-devel

How To Uninstall sparsehash-devel on Rocky Linux 8

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

sudo dnf remove sparsehash-devel

sparsehash-devel Package Contents on Rocky Linux 8

/usr/include/google
/usr/include/google/dense_hash_map
/usr/include/google/dense_hash_set
/usr/include/google/sparse_hash_map
/usr/include/google/sparse_hash_set
/usr/include/google/sparsehash
/usr/include/google/sparsehash/densehashtable.h
/usr/include/google/sparsehash/hashtable-common.h
/usr/include/google/sparsehash/libc_allocator_with_realloc.h
/usr/include/google/sparsehash/sparsehashtable.h
/usr/include/google/sparsetable
/usr/include/google/template_util.h
/usr/include/google/type_traits.h
/usr/include/sparsehash
/usr/include/sparsehash/dense_hash_map
/usr/include/sparsehash/dense_hash_set
/usr/include/sparsehash/internal
/usr/include/sparsehash/internal/densehashtable.h
/usr/include/sparsehash/internal/hashtable-common.h
/usr/include/sparsehash/internal/libc_allocator_with_realloc.h
/usr/include/sparsehash/internal/sparseconfig.h
/usr/include/sparsehash/internal/sparsehashtable.h
/usr/include/sparsehash/sparse_hash_map
/usr/include/sparsehash/sparse_hash_set
/usr/include/sparsehash/sparsetable
/usr/include/sparsehash/template_util.h
/usr/include/sparsehash/type_traits.h
/usr/lib/pkgconfig/libsparsehash.pc
/usr/share/doc/sparsehash
/usr/share/doc/sparsehash/AUTHORS
/usr/share/doc/sparsehash/COPYING
/usr/share/doc/sparsehash/ChangeLog
/usr/share/doc/sparsehash/NEWS
/usr/share/doc/sparsehash/README
/usr/share/doc/sparsehash/TODO
/usr/share/doc/sparsehash/dense_hash_map.html
/usr/share/doc/sparsehash/dense_hash_set.html
/usr/share/doc/sparsehash/designstyle.css
/usr/share/doc/sparsehash/implementation.html
/usr/share/doc/sparsehash/index.html
/usr/share/doc/sparsehash/performance.html
/usr/share/doc/sparsehash/sparse_hash_map.html
/usr/share/doc/sparsehash/sparse_hash_set.html
/usr/share/doc/sparsehash/sparsetable.html
/usr/include/google
/usr/include/google/dense_hash_map
/usr/include/google/dense_hash_set
/usr/include/google/sparse_hash_map
/usr/include/google/sparse_hash_set
/usr/include/google/sparsehash
/usr/include/google/sparsehash/densehashtable.h
/usr/include/google/sparsehash/hashtable-common.h
/usr/include/google/sparsehash/libc_allocator_with_realloc.h
/usr/include/google/sparsehash/sparsehashtable.h
/usr/include/google/sparsetable
/usr/include/google/template_util.h
/usr/include/google/type_traits.h
/usr/include/sparsehash
/usr/include/sparsehash/dense_hash_map
/usr/include/sparsehash/dense_hash_set
/usr/include/sparsehash/internal
/usr/include/sparsehash/internal/densehashtable.h
/usr/include/sparsehash/internal/hashtable-common.h
/usr/include/sparsehash/internal/libc_allocator_with_realloc.h
/usr/include/sparsehash/internal/sparseconfig.h
/usr/include/sparsehash/internal/sparsehashtable.h
/usr/include/sparsehash/sparse_hash_map
/usr/include/sparsehash/sparse_hash_set
/usr/include/sparsehash/sparsetable
/usr/include/sparsehash/template_util.h
/usr/include/sparsehash/type_traits.h
/usr/lib64/pkgconfig/libsparsehash.pc
/usr/share/doc/sparsehash
/usr/share/doc/sparsehash/AUTHORS
/usr/share/doc/sparsehash/COPYING
/usr/share/doc/sparsehash/ChangeLog
/usr/share/doc/sparsehash/NEWS
/usr/share/doc/sparsehash/README
/usr/share/doc/sparsehash/TODO
/usr/share/doc/sparsehash/dense_hash_map.html
/usr/share/doc/sparsehash/dense_hash_set.html
/usr/share/doc/sparsehash/designstyle.css
/usr/share/doc/sparsehash/implementation.html
/usr/share/doc/sparsehash/index.html
/usr/share/doc/sparsehash/performance.html
/usr/share/doc/sparsehash/sparse_hash_map.html
/usr/share/doc/sparsehash/sparse_hash_set.html
/usr/share/doc/sparsehash/sparsetable.html

References

Summary

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