How To Install catch-devel on Rocky Linux 8

In this tutorial we learn how to install catch-devel on Rocky Linux 8. catch-devel is Development files for catch

Introduction

In this tutorial we learn how to install catch-devel on Rocky Linux 8.

What is catch-devel

Catch stands for C++ Automated Test Cases in Headers and is a multi-paradigm automated test framework for C++ and Objective-C (and, maybe, C). It is implemented entirely in a set of header files, but is packaged up as a single header for extra convenience.

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

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

sudo dnf -y install catch-devel

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

sudo yum -y install catch-devel

How To Uninstall catch-devel on Rocky Linux 8

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

sudo dnf remove catch-devel

catch-devel Package Contents on Rocky Linux 8

/usr/include/catch2
/usr/include/catch2/catch.hpp
/usr/include/catch2/catch_reporter_automake.hpp
/usr/include/catch2/catch_reporter_tap.hpp
/usr/include/catch2/catch_reporter_teamcity.hpp
/usr/lib64/cmake/Catch2
/usr/lib64/cmake/Catch2/Catch.cmake
/usr/lib64/cmake/Catch2/Catch2Config.cmake
/usr/lib64/cmake/Catch2/Catch2ConfigVersion.cmake
/usr/lib64/cmake/Catch2/Catch2Targets.cmake
/usr/lib64/cmake/Catch2/CatchAddTests.cmake
/usr/lib64/cmake/Catch2/ParseAndAddCatchTests.cmake
/usr/share/Catch2
/usr/share/Catch2/gdbinit
/usr/share/Catch2/lldbinit
/usr/share/doc/catch-devel
/usr/share/doc/catch-devel/CODE_OF_CONDUCT.md
/usr/share/doc/catch-devel/README.md
/usr/share/doc/catch-devel/docs
/usr/share/doc/catch-devel/docs/Readme.md
/usr/share/doc/catch-devel/docs/assertions.md
/usr/share/doc/catch-devel/docs/benchmarks.md
/usr/share/doc/catch-devel/docs/ci-and-misc.md
/usr/share/doc/catch-devel/docs/cmake-integration.md
/usr/share/doc/catch-devel/docs/command-line.md
/usr/share/doc/catch-devel/docs/commercial-users.md
/usr/share/doc/catch-devel/docs/configuration.md
/usr/share/doc/catch-devel/docs/contributing.md
/usr/share/doc/catch-devel/docs/deprecations.md
/usr/share/doc/catch-devel/docs/event-listeners.md
/usr/share/doc/catch-devel/docs/generators.md
/usr/share/doc/catch-devel/docs/limitations.md
/usr/share/doc/catch-devel/docs/list-of-examples.md
/usr/share/doc/catch-devel/docs/logging.md
/usr/share/doc/catch-devel/docs/matchers.md
/usr/share/doc/catch-devel/docs/opensource-users.md
/usr/share/doc/catch-devel/docs/other-macros.md
/usr/share/doc/catch-devel/docs/own-main.md
/usr/share/doc/catch-devel/docs/release-notes.md
/usr/share/doc/catch-devel/docs/release-process.md
/usr/share/doc/catch-devel/docs/reporters.md
/usr/share/doc/catch-devel/docs/slow-compiles.md
/usr/share/doc/catch-devel/docs/test-cases-and-sections.md
/usr/share/doc/catch-devel/docs/test-fixtures.md
/usr/share/doc/catch-devel/docs/tostring.md
/usr/share/doc/catch-devel/docs/tutorial.md
/usr/share/doc/catch-devel/docs/why-catch.md
/usr/share/licenses/catch-devel
/usr/share/licenses/catch-devel/LICENSE.txt
/usr/share/pkgconfig/catch2.pc

References

Summary

In this tutorial we learn how to install catch-devel on Rocky Linux 8 using yum and dnf.