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 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 abseil-cpp using dnf by running the following command:

sudo dnf -y install abseil-cpp

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

sudo yum -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

abseil-cpp Package Contents on CentOS 8

/usr/lib/.build-id
/usr/lib/.build-id/04
/usr/lib/.build-id/04/446f801df26e5930aeb85730b87156ef02c32a
/usr/lib/.build-id/05
/usr/lib/.build-id/05/2b83570b938a2a721c2b59ae2f25c1210969af
/usr/lib/.build-id/07
/usr/lib/.build-id/07/6ba1a14ac2014b850fcfcc0b8a859e638a8701
/usr/lib/.build-id/0c
/usr/lib/.build-id/0c/228e21d0e521d030986bfa0353cd21d763719c
/usr/lib/.build-id/0f
/usr/lib/.build-id/0f/8a8a9f6f9cf2ad65429caf398f03e5a326d8e0
/usr/lib/.build-id/11
/usr/lib/.build-id/11/92ac087c047dcdf661f4bc2fa8d6ef31a530c4
/usr/lib/.build-id/19
/usr/lib/.build-id/19/f777aafbaaf4c57e77c17928f8af67aca2e579
/usr/lib/.build-id/20
/usr/lib/.build-id/20/148ea3f4bb9758f60371e619e267fbfa66977d
/usr/lib/.build-id/21
/usr/lib/.build-id/21/7ccc16df5a616db6d92e3931cd3366a2234fc8
/usr/lib/.build-id/2f
/usr/lib/.build-id/2f/cf38551b37846fa7f7f08255467812ac9e8625
/usr/lib/.build-id/30
/usr/lib/.build-id/30/5e68e81d7da296404061f5b668593eb96d4e09
/usr/lib/.build-id/30/8d003206f751f23c81a145b2b5973b79a6c850
/usr/lib/.build-id/33
/usr/lib/.build-id/33/d7fec60b8db6e2ab9a8665eee0c4be7f091234
/usr/lib/.build-id/34
/usr/lib/.build-id/34/30e5d4a7cf8731350c8b7ffea6840db01f827b
/usr/lib/.build-id/35
/usr/lib/.build-id/35/da5548a230ffcc87d550119fad29b2c3bb05c7
/usr/lib/.build-id/41
/usr/lib/.build-id/41/153b7c12f078276b5a3cfc15c654ad161606a4
/usr/lib/.build-id/43
/usr/lib/.build-id/43/245eb2ec6c4e7a61386ca248092d26e17ff283
/usr/lib/.build-id/44
/usr/lib/.build-id/44/26070d2e39eebcc613bccf5e0b4acf7c294085
/usr/lib/.build-id/4b
/usr/lib/.build-id/4b/2b213b9169c806bad1b4b6ef42c1fa60b0226a
/usr/lib/.build-id/51
/usr/lib/.build-id/51/972594541b30faf859535246c501c55157ef62
/usr/lib/.build-id/5b
/usr/lib/.build-id/5b/764d348d4d27b0a415f74ed4f6658ffcbeef82
/usr/lib/.build-id/63
/usr/lib/.build-id/63/81f0c08fd1fb3b1ade426d1e4804121b7c152f
/usr/lib/.build-id/67
/usr/lib/.build-id/67/f6fb1cbf02b81c59da27af177b365148ff2fb6
/usr/lib/.build-id/69
/usr/lib/.build-id/69/12315f0bc4487fb55fe0ec77e3b81a2daade3e
/usr/lib/.build-id/6a
/usr/lib/.build-id/6a/37b5143d47fa46adbd75d4e979f8334e8e81ad
/usr/lib/.build-id/6d
/usr/lib/.build-id/6d/887fd4a0f11840e854d49c14ad32c231a6da33
/usr/lib/.build-id/6d/f4f46ef76778cabbf9f47f9921299660b3befa
/usr/lib/.build-id/75
/usr/lib/.build-id/75/bcf3e0217d732cab6d2fe9c05af4c591e7fcf4
/usr/lib/.build-id/77
/usr/lib/.build-id/77/e8730d632f3037041cb7cda9c7b9a52bbcbf99
/usr/lib/.build-id/7e
/usr/lib/.build-id/7e/3d37cdc06fa383e072e95447453d57e9d2a861
/usr/lib/.build-id/82
/usr/lib/.build-id/82/f3beac9fbf0a28c87ef3be26bc0fbade7d88b1
/usr/lib/.build-id/85
/usr/lib/.build-id/85/dbde6d8fe452e9035a34d3cef37710e81e7db9
/usr/lib/.build-id/85/e5c9ad832dcb1b705b5d775ee4154bd0b1c19b
/usr/lib/.build-id/86
/usr/lib/.build-id/86/396a96286383522da4297850da3af01fcd7199
/usr/lib/.build-id/87
/usr/lib/.build-id/87/e2f7e537140b6078f158dab0076cc55dc0b520
/usr/lib/.build-id/93
/usr/lib/.build-id/93/f1d0e5a066eb4ee6aa75ea5c33d70420f830e7
/usr/lib/.build-id/95
/usr/lib/.build-id/95/7d3d4235360ef2c94a28c7e80432572b10fea3
/usr/lib/.build-id/99
/usr/lib/.build-id/99/e209cf0f4819c8ae3408c39a84716c8ad8e590
/usr/lib/.build-id/9a
/usr/lib/.build-id/9a/2509b7545835a48285228728458f51a8425c6b
/usr/lib/.build-id/9b
/usr/lib/.build-id/9b/4435c0c4e37d2c3fc70016f03e8b4b8c442feb
/usr/lib/.build-id/9b/5227dca3a385e5a739d7d40f522b10cf28d3ea
/usr/lib/.build-id/9f
/usr/lib/.build-id/9f/f8eae092448d181b27625ac4bcd251c12c5c8e
/usr/lib/.build-id/a0
/usr/lib/.build-id/a0/d455dd9023a6c5da0eb384ecb116169e09f9cd
/usr/lib/.build-id/a2
/usr/lib/.build-id/a2/8683aad03debce052cd1ebfdf22d2a43562027
/usr/lib/.build-id/a6
/usr/lib/.build-id/a6/28fbcf37e417b8799f4f6668a4283ddb38d43a
/usr/lib/.build-id/c6
/usr/lib/.build-id/c6/6bc3fd912f28e2b5cea553dbe18a38f439a8b5
/usr/lib/.build-id/c7
/usr/lib/.build-id/c7/f8fa9782057ea070a25ebc5d96ddf37d8bc7dc
/usr/lib/.build-id/c9
/usr/lib/.build-id/c9/415a427dd6912b109474e84a4844595fc247e9
/usr/lib/.build-id/c9/b45a432cf391b718be114125f1da4a345fb07d
/usr/lib/.build-id/cd
/usr/lib/.build-id/cd/fa3589e086bee3b367d0d00f93e1cb6b562ac0
/usr/lib/.build-id/d0
/usr/lib/.build-id/d0/ee929df45267679255b9858f697bd58dd7287b
/usr/lib/.build-id/d3
/usr/lib/.build-id/d3/2aa643c37d5eb608861076c3526c8a597673ae
/usr/lib/.build-id/d7
/usr/lib/.build-id/d7/1562f3f2ca1cce816cd456e0f15ac70efee4e9
/usr/lib/.build-id/d9
/usr/lib/.build-id/d9/526db875587b9563ce77acd287ec189268a30a
/usr/lib/.build-id/e0
/usr/lib/.build-id/e0/24687e2e1473e06ae816258f306cd505ef4e57
/usr/lib/.build-id/e7
/usr/lib/.build-id/e7/4e780c32c8838269f800b0b03833efff7ba05f
/usr/lib/.build-id/e9
/usr/lib/.build-id/e9/402d3a82f2cef6bf1a480b97ed896c9d2d6a82
/usr/lib/.build-id/f1
/usr/lib/.build-id/f1/61fb42b03c19e86dea9d93539995d5bf177b31
/usr/lib/.build-id/f3
/usr/lib/.build-id/f3/9e72fe76dc74ca00e55d00e5c3325c6cf7b4ba
/usr/lib/.build-id/f9
/usr/lib/.build-id/f9/532c379d02062344d0a894bd70cb1cbedf1057
/usr/lib64/libabsl_bad_any_cast_impl.so
/usr/lib64/libabsl_bad_optional_access.so
/usr/lib64/libabsl_bad_variant_access.so
/usr/lib64/libabsl_base.so
/usr/lib64/libabsl_city.so
/usr/lib64/libabsl_civil_time.so
/usr/lib64/libabsl_cord.so
/usr/lib64/libabsl_debugging_internal.so
/usr/lib64/libabsl_demangle_internal.so
/usr/lib64/libabsl_examine_stack.so
/usr/lib64/libabsl_exponential_biased.so
/usr/lib64/libabsl_failure_signal_handler.so
/usr/lib64/libabsl_flags.so
/usr/lib64/libabsl_flags_commandlineflag.so
/usr/lib64/libabsl_flags_commandlineflag_internal.so
/usr/lib64/libabsl_flags_config.so
/usr/lib64/libabsl_flags_internal.so
/usr/lib64/libabsl_flags_marshalling.so
/usr/lib64/libabsl_flags_parse.so
/usr/lib64/libabsl_flags_private_handle_accessor.so
/usr/lib64/libabsl_flags_program_name.so
/usr/lib64/libabsl_flags_reflection.so
/usr/lib64/libabsl_flags_usage.so
/usr/lib64/libabsl_flags_usage_internal.so
/usr/lib64/libabsl_graphcycles_internal.so
/usr/lib64/libabsl_hash.so
/usr/lib64/libabsl_hashtablez_sampler.so
/usr/lib64/libabsl_int128.so
/usr/lib64/libabsl_leak_check.so
/usr/lib64/libabsl_leak_check_disable.so
/usr/lib64/libabsl_log_severity.so
/usr/lib64/libabsl_malloc_internal.so
/usr/lib64/libabsl_periodic_sampler.so
/usr/lib64/libabsl_random_distributions.so
/usr/lib64/libabsl_random_internal_distribution_test_util.so
/usr/lib64/libabsl_random_internal_platform.so
/usr/lib64/libabsl_random_internal_pool_urbg.so
/usr/lib64/libabsl_random_internal_randen.so
/usr/lib64/libabsl_random_internal_randen_hwaes.so
/usr/lib64/libabsl_random_internal_randen_hwaes_impl.so
/usr/lib64/libabsl_random_internal_randen_slow.so
/usr/lib64/libabsl_random_internal_seed_material.so
/usr/lib64/libabsl_random_seed_gen_exception.so
/usr/lib64/libabsl_random_seed_sequences.so
/usr/lib64/libabsl_raw_hash_set.so
/usr/lib64/libabsl_raw_logging_internal.so
/usr/lib64/libabsl_scoped_set_env.so
/usr/lib64/libabsl_spinlock_wait.so
/usr/lib64/libabsl_stacktrace.so
/usr/lib64/libabsl_status.so
/usr/lib64/libabsl_statusor.so
/usr/lib64/libabsl_str_format_internal.so
/usr/lib64/libabsl_strerror.so
/usr/lib64/libabsl_strings.so
/usr/lib64/libabsl_strings_internal.so
/usr/lib64/libabsl_symbolize.so
/usr/lib64/libabsl_synchronization.so
/usr/lib64/libabsl_throw_delegate.so
/usr/lib64/libabsl_time.so
/usr/lib64/libabsl_time_zone.so
/usr/share/doc/abseil-cpp
/usr/share/doc/abseil-cpp/FAQ.md
/usr/share/doc/abseil-cpp/LTS.md
/usr/share/doc/abseil-cpp/README.md
/usr/share/doc/abseil-cpp/UPGRADES.md
/usr/share/licenses/abseil-cpp
/usr/share/licenses/abseil-cpp/LICENSE

References

Summary

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