How To Install CUnit.i686 on Amazon Linux 2

In this tutorial we learn how to install CUnit.i686 in Amazon Linux 2. CUnit.i686 is Unit testing framework for C

Introduction

In this tutorial we learn how to install CUnit.i686 on Amazon Linux 2.

What is CUnit.i686

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 to install CUnit.i686 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install CUnit.i686.

Install CUnit.i686 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install CUnit.i686

How To Uninstall CUnit.i686 on Amazon Linux 2

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

sudo yum remove CUnit.i686

CUnit.i686 Package Contents on Amazon Linux 2

/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.i686 on Amazon Linux 2 using yum.