How To Install CUnit.x86_64 on Amazon Linux 2
In this tutorial we learn how to install CUnit.x86_64 in Amazon Linux 2. CUnit.x86_64 is Unit testing framework for C
Introduction
In this tutorial we learn how to install CUnit.x86_64
on Amazon Linux 2.
What is CUnit.x86_64
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.x86_64
on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install CUnit.x86_64.
Install CUnit.x86_64 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.x86_64
using yum
by running the following command:
sudo yum -y install CUnit.x86_64
How To Uninstall CUnit.x86_64 on Amazon Linux 2
To uninstall only the CUnit.x86_64
package we can use the following command:
sudo yum remove CUnit.x86_64
CUnit.x86_64 Package Contents on Amazon Linux 2
/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.x86_64
on Amazon Linux 2 using yum.