How To Install cppunit on Fedora 34

cppunit is C++ unit testing framework C++ unit testing framework

Introduction

In this tutorial we learn how to install cppunit on Fedora 34.

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. cppunit 1.15.1 5.fc34 x86_64 140 k cppunit-1.15.1-5.fc34.src.rpm fedora C++ unit testing framework https LGPLv2+ 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 Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install cppunit.

Install cppunit on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install cppunit using dnf by running the following command:

sudo dnf -y install cppunit

Install cppunit on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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 Fedora 34

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

sudo dnf remove cppunit

cppunit Package Contents on Fedora 34

/usr/bin/DllPlugInTester
/usr/lib/.build-id
/usr/lib/.build-id/04
/usr/lib/.build-id/04/2004ef8249146d5edb2d3ef62bc87ce128accc
/usr/lib/.build-id/16
/usr/lib/.build-id/16/dc1c3fb409c08b5368941c62be64e73f7a70b1
/usr/lib/libcppunit-1.15.so.1
/usr/lib/libcppunit-1.15.so.1.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/67
/usr/lib/.build-id/67/581119c60f1a55bca7e2a91eae0d3db9a53310
/usr/lib/.build-id/69
/usr/lib/.build-id/69/c315b6a62a9ce89d6ddd278428e0edd0dea173
/usr/lib64/libcppunit-1.15.so.1
/usr/lib64/libcppunit-1.15.so.1.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 Fedora 34 using yum and dnf.