How To Install sparsehash-devel on CentOS 8

sparsehash-devel is Extremely memory-efficient C++ hash_map implementation Extremely memory-efficient C++ hash_map implementation

Introduction

In this tutorial we learn how to install sparsehash-devel on CentOS 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. sparsehash-devel 2.0.2 8.el8 x86_64 91 k sparsehash-2.0.2-8.el8.src.rpm powertools Extremely memory-efficient C++ hash_map implementation http BSD 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 CentOS 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 CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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 CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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 CentOS 8

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

sudo dnf remove sparsehash-devel

sparsehash-devel Package Contents on CentOS 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 CentOS 8 using yum and dnf.