How To Install cppunit on Rocky Linux 8

In this tutorial we learn how to install cppunit on Rocky Linux 8. cppunit is C++ unit testing framework

Introduction

In this tutorial we learn how to install cppunit on Rocky Linux 8.

What is cppunit

CppUnit is the C++ port of the famous JUnit framework for unit testing. Test output is in XML for automatic testing and GUI based for supervised tests.

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

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

sudo dnf -y install cppunit

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

sudo yum -y install cppunit

How To Uninstall cppunit on Rocky Linux 8

To uninstall only the cppunit package we can use the following command:

sudo dnf remove cppunit

cppunit Package Contents on Rocky Linux 8

/usr/bin/DllPlugInTester
/usr/lib/.build-id
/usr/lib/.build-id/1d
/usr/lib/.build-id/1d/234ecbca7a1c7719d922cbf888041aec2ed849
/usr/lib/.build-id/ff
/usr/lib/.build-id/ff/3c813bd462a412daa48be4115829c25e10881e
/usr/lib/libcppunit-1.14.so.0
/usr/lib/libcppunit-1.14.so.0.0.0
/usr/share/doc/cppunit
/usr/share/doc/cppunit/AUTHORS
/usr/share/doc/cppunit/BUGS
/usr/share/doc/cppunit/FAQ
/usr/share/doc/cppunit/NEWS
/usr/share/doc/cppunit/README
/usr/share/doc/cppunit/THANKS
/usr/share/doc/cppunit/TODO
/usr/share/licenses/cppunit
/usr/share/licenses/cppunit/COPYING
/usr/bin/DllPlugInTester
/usr/lib/.build-id
/usr/lib/.build-id/4f
/usr/lib/.build-id/4f/9b05551ecf43d6a2ae61e31f577367d309ae93
/usr/lib/.build-id/cb
/usr/lib/.build-id/cb/25614f47ecb82a1433f7df8d8c536025afdff7
/usr/lib64/libcppunit-1.14.so.0
/usr/lib64/libcppunit-1.14.so.0.0.0
/usr/share/doc/cppunit
/usr/share/doc/cppunit/AUTHORS
/usr/share/doc/cppunit/BUGS
/usr/share/doc/cppunit/FAQ
/usr/share/doc/cppunit/NEWS
/usr/share/doc/cppunit/README
/usr/share/doc/cppunit/THANKS
/usr/share/doc/cppunit/TODO
/usr/share/licenses/cppunit
/usr/share/licenses/cppunit/COPYING

References

Summary

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