How To Install rapidjson-devel on CentOS 8

rapidjson-devel is Fast JSON parser and generator for C++

Introduction

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

What is rapidjson-devel

%{description}

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

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

sudo dnf -y install rapidjson-devel

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

sudo yum -y install rapidjson-devel

How To Uninstall rapidjson-devel on CentOS 8

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

sudo dnf remove rapidjson-devel

rapidjson-devel Package Contents on CentOS 8

/usr/include/rapidjson
/usr/include/rapidjson/allocators.h
/usr/include/rapidjson/document.h
/usr/include/rapidjson/encodedstream.h
/usr/include/rapidjson/encodings.h
/usr/include/rapidjson/error
/usr/include/rapidjson/error/en.h
/usr/include/rapidjson/error/error.h
/usr/include/rapidjson/filereadstream.h
/usr/include/rapidjson/filewritestream.h
/usr/include/rapidjson/fwd.h
/usr/include/rapidjson/internal
/usr/include/rapidjson/internal/biginteger.h
/usr/include/rapidjson/internal/diyfp.h
/usr/include/rapidjson/internal/dtoa.h
/usr/include/rapidjson/internal/ieee754.h
/usr/include/rapidjson/internal/itoa.h
/usr/include/rapidjson/internal/meta.h
/usr/include/rapidjson/internal/pow10.h
/usr/include/rapidjson/internal/regex.h
/usr/include/rapidjson/internal/stack.h
/usr/include/rapidjson/internal/strfunc.h
/usr/include/rapidjson/internal/strtod.h
/usr/include/rapidjson/internal/swap.h
/usr/include/rapidjson/istreamwrapper.h
/usr/include/rapidjson/memorybuffer.h
/usr/include/rapidjson/memorystream.h
/usr/include/rapidjson/msinttypes
/usr/include/rapidjson/msinttypes/inttypes.h
/usr/include/rapidjson/msinttypes/stdint.h
/usr/include/rapidjson/ostreamwrapper.h
/usr/include/rapidjson/pointer.h
/usr/include/rapidjson/prettywriter.h
/usr/include/rapidjson/rapidjson.h
/usr/include/rapidjson/reader.h
/usr/include/rapidjson/schema.h
/usr/include/rapidjson/stream.h
/usr/include/rapidjson/stringbuffer.h
/usr/include/rapidjson/writer.h
/usr/lib64/cmake
/usr/lib64/cmake/RapidJSON
/usr/lib64/cmake/RapidJSON/RapidJSONConfig.cmake
/usr/lib64/cmake/RapidJSON/RapidJSONConfigVersion.cmake
/usr/lib64/pkgconfig/RapidJSON.pc
/usr/share/doc/rapidjson
/usr/share/doc/rapidjson/CHANGELOG.md
/usr/share/doc/rapidjson/readme.md
/usr/share/doc/rapidjson/readme.zh-cn.md
/usr/share/licenses/rapidjson-devel
/usr/share/licenses/rapidjson-devel/license.txt

References

Summary

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