How To Install check on Fedora 34

check is A unit test framework for C A unit test framework for C

Introduction

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

What is check

Check is a unit test framework for C. It features a simple interface for defining unit tests, putting little in the way of the developer. Tests are run in a separate address space, so Check can catch both assertion failures and code errors that cause segmentation faults or other signals. The output from unit tests can be used within source code editors and IDEs. check 0.15.2 3.fc34 x86_64 88 k check-0.15.2-3.fc34.src.rpm fedora A unit test framework for C http LGPLv2+ Check is a unit test framework for C. It features a simple interface for defining unit tests, putting little in the way of the developer. Tests are run in a separate address space, so Check can catch both assertion failures and code errors that cause segmentation faults or other signals. The output from unit tests can be used within source code editors and IDEs.

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

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

sudo dnf -y install check

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

sudo yum -y install check

How To Uninstall check on Fedora 34

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

sudo dnf remove check

check Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/c0
/usr/lib/.build-id/c0/4581e02d4fb77ff724c04b12eba1430a016cd3
/usr/lib64/libcheck.so.0
/usr/lib64/libcheck.so.0.15.2
/usr/share/doc/check
/usr/share/doc/check/AUTHORS
/usr/share/doc/check/NEWS
/usr/share/info/check.info.gz
/usr/share/licenses/check
/usr/share/licenses/check/COPYING.LESSER
/usr/lib/.build-id
/usr/lib/.build-id/d8
/usr/lib/.build-id/d8/f7eb8a2cf8edba0ea81ab7923dc4cf16522e08
/usr/lib/libcheck.so.0
/usr/lib/libcheck.so.0.15.2
/usr/share/doc/check
/usr/share/doc/check/AUTHORS
/usr/share/doc/check/NEWS
/usr/share/info/check.info.gz
/usr/share/licenses/check
/usr/share/licenses/check/COPYING.LESSER

References

Summary

In this tutorial we learn how to install check on Fedora 34 using yum and dnf.