How To Install abseil-cpp on CentOS 8

In this tutorial we learn how to install abseil-cpp on CentOS 8. abseil-cpp is C++ Common Libraries

Introduction

In this tutorial we learn how to install abseil-cpp on CentOS 8.

What is abseil-cpp

Abseil is an open-source collection of C++ library code designed to augment the C++ standard library. The Abseil library code is collected from Google’s own C++ code base, has been extensively tested and used in production, and is the same code we depend on in our daily coding lives. In some cases, Abseil provides pieces missing from the C++ standard; in others, Abseil provides alternatives to the standard for special needs we’ve found through usage in the Google code base. We denote those cases clearly within the library code we provide you. Abseil is not meant to be a competitor to the standard library; we’ve just found that many of these utilities serve a purpose within our code base, and we now want to provide those resources to the C++ community as a whole.

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

Install abseil-cpp on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install abseil-cpp

Install abseil-cpp on CentOS 8 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install abseil-cpp

How To Uninstall abseil-cpp on CentOS 8

To uninstall only the abseil-cpp package we can use the following command:

sudo dnf remove abseil-cpp

References

Summary

In this tutorial we learn how to install abseil-cpp on CentOS 8 using yum and dnf.