Introduction
In this tutorial we learn how to install catch-devel
on CentOS 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 CentOS 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 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 catch-devel
using dnf
by running the following command:
sudo dnf -y install catch-devel
Install catch-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 catch-devel
using yum
by running the following command:
sudo yum -y install catch-devel
How To Uninstall catch-devel on CentOS 8
To uninstall only the catch-devel
package we can use the following command:
sudo dnf remove catch-devel
catch-devel Package Contents on CentOS 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 CentOS 8 using yum and dnf.