How To Install json-devel on Rocky Linux 8
Introduction
In this tutorial we learn how to install json-devel
on Rocky Linux 8.
What is json-devel
The json-devel package contains C++ header files for developing applications that use json.
We can use yum
or dnf
to install json-devel
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install json-devel.
Install json-devel on Rocky Linux 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install json-devel
using dnf
by running the following command:
sudo dnf -y install json-devel
Install json-devel on Rocky Linux 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install json-devel
using yum
by running the following command:
sudo yum -y install json-devel
How To Uninstall json-devel on Rocky Linux 8
To uninstall only the json-devel
package we can use the following command:
sudo dnf remove json-devel
json-devel Package Contents on Rocky Linux 8
/usr/include/json.hpp
/usr/include/nlohmann
/usr/include/nlohmann/json.hpp
/usr/lib64/cmake/nlohmann_json
/usr/lib64/cmake/nlohmann_json/nlohmann_jsonConfig.cmake
/usr/lib64/cmake/nlohmann_json/nlohmann_jsonConfigVersion.cmake
/usr/lib64/cmake/nlohmann_json/nlohmann_jsonTargets.cmake
/usr/share/doc/json-devel
/usr/share/doc/json-devel/README.md
/usr/share/licenses/json-devel
/usr/share/licenses/json-devel/LICENSE.MIT
References
Summary
In this tutorial we learn how to install json-devel
on Rocky Linux 8 using yum and dnf.