How To Install CUnit on Fedora 36

In this tutorial we learn how to install CUnit in Fedora 36. CUnit is Unit testing framework for C

Introduction

In this tutorial we learn how to install CUnit on Fedora 36.

What is CUnit

CUnit is a lightweight system for writing, administering, and running unit tests in C. It provides C programmers a basic testing functionality with a flexible variety of user interfaces.

We can use yum or dnf to install CUnit on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install CUnit.

Install CUnit on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install CUnit

Install CUnit on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install CUnit

How To Uninstall CUnit on Fedora 36

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

sudo dnf remove CUnit

CUnit Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/00
/usr/lib/.build-id/00/5804143a8750c1f44d4fccf8429b8f06b20617
/usr/lib/libcunit.so.1
/usr/lib/libcunit.so.1.0.1
/usr/share/CUnit
/usr/share/CUnit/CUnit-List.dtd
/usr/share/CUnit/CUnit-List.xsl
/usr/share/CUnit/CUnit-Run.dtd
/usr/share/CUnit/CUnit-Run.xsl
/usr/share/CUnit/Memory-Dump.dtd
/usr/share/CUnit/Memory-Dump.xsl
/usr/share/doc/CUnit
/usr/share/doc/CUnit/AUTHORS
/usr/share/doc/CUnit/COPYING
/usr/share/doc/CUnit/ChangeLog
/usr/share/doc/CUnit/NEWS
/usr/share/doc/CUnit/README
/usr/share/doc/CUnit/TODO
/usr/share/doc/CUnit/VERSION

References

Summary

In this tutorial we learn how to install CUnit on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).


title: “How To Install CUnit on Fedora 36” linkTitle: “CUnit” type: “docs” description: “In this tutorial we learn how to install CUnit in Fedora 36. CUnit is Unit testing framework for C” date: “2022-08-17” lastmod: “2022-08-17” #image: /images/fedora/36/CUnit-featured.png

Introduction

In this tutorial we learn how to install CUnit on Fedora 36.

What is CUnit

CUnit is a lightweight system for writing, administering, and running unit tests in C. It provides C programmers a basic testing functionality with a flexible variety of user interfaces.

We can use yum or dnf to install CUnit on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install CUnit.

Install CUnit on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install CUnit

Install CUnit on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install CUnit

How To Uninstall CUnit on Fedora 36

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

sudo dnf remove CUnit

CUnit Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/f5
/usr/lib/.build-id/f5/56c7d2cc4fdd6987f5701cb5fce3a989a9f2cb
/usr/lib64/libcunit.so.1
/usr/lib64/libcunit.so.1.0.1
/usr/share/CUnit
/usr/share/CUnit/CUnit-List.dtd
/usr/share/CUnit/CUnit-List.xsl
/usr/share/CUnit/CUnit-Run.dtd
/usr/share/CUnit/CUnit-Run.xsl
/usr/share/CUnit/Memory-Dump.dtd
/usr/share/CUnit/Memory-Dump.xsl
/usr/share/doc/CUnit
/usr/share/doc/CUnit/AUTHORS
/usr/share/doc/CUnit/COPYING
/usr/share/doc/CUnit/ChangeLog
/usr/share/doc/CUnit/NEWS
/usr/share/doc/CUnit/README
/usr/share/doc/CUnit/TODO
/usr/share/doc/CUnit/VERSION

References

Summary

In this tutorial we learn how to install CUnit on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).