How To Install robin-map-devel on CentOS 8

robin-map-devel is C++ implementation of a fast hash map and hash set using robin hood hashing

Introduction

In this tutorial we learn how to install robin-map-devel on CentOS 8.

What is robin-map-devel

The robin-map library is a C++ implementation of a fast hash map and hash set using open-addressing and linear robin hood hashing with backward shift deletion to resolve collisions. Four classes are provided and tsl policy, the last two use a prime growth policy instead and are able to cope better with a poor hash function. Use the prime version if there is a chance of repeating patterns in the lower bits of your hash (e.g. you are storing pointers with an identity hash function). See GrowthPolicy for details. A benchmark of tsl page also gives some advices on which hash table structure you should try for your use case (useful if you are a bit lost with the multiple hash tables implementations in the tsl namespace).

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

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

sudo dnf -y install robin-map-devel

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

sudo yum -y install robin-map-devel

How To Uninstall robin-map-devel on CentOS 8

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

sudo dnf remove robin-map-devel

robin-map-devel Package Contents on CentOS 8

/usr/include/tsl
/usr/include/tsl/robin_growth_policy.h
/usr/include/tsl/robin_hash.h
/usr/include/tsl/robin_map.h
/usr/include/tsl/robin_set.h
/usr/share/cmake/tsl-robin-map/tsl-robin-mapConfig.cmake
/usr/share/cmake/tsl-robin-map/tsl-robin-mapConfigVersion.cmake
/usr/share/cmake/tsl-robin-map/tsl-robin-mapTargets.cmake
/usr/share/doc/robin-map-devel
/usr/share/doc/robin-map-devel/README.md
/usr/share/licenses/robin-map-devel
/usr/share/licenses/robin-map-devel/LICENSE

References

Summary

In this tutorial we learn how to install robin-map-devel on CentOS 8 using yum and dnf.