How To Install CUnit-devel on CentOS 8

CUnit-devel is Header files and libraries for CUnit development Header files and libraries for CUnit development

Introduction

In this tutorial we learn how to install CUnit-devel on CentOS 8.

What is CUnit-devel

The CUnit-devel package contains the header files and libraries for use with CUnit package. CUnit-devel 2.1.3 17.el8 x86_64 67 k CUnit-2.1.3-17.el8.src.rpm powertools Header files and libraries for CUnit development http LGPLv2+ The CUnit-devel package contains the header files and libraries for use with CUnit package.

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

Install CUnit-devel on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo dnf -y install CUnit-devel

Install CUnit-devel on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo yum -y install CUnit-devel

How To Uninstall CUnit-devel on CentOS 8

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

sudo dnf remove CUnit-devel

CUnit-devel Package Contents on CentOS 8

/usr/include/CUnit
/usr/include/CUnit/Automated.h
/usr/include/CUnit/Basic.h
/usr/include/CUnit/CUError.h
/usr/include/CUnit/CUnit.h
/usr/include/CUnit/CUnit_intl.h
/usr/include/CUnit/Console.h
/usr/include/CUnit/MyMem.h
/usr/include/CUnit/TestDB.h
/usr/include/CUnit/TestRun.h
/usr/include/CUnit/Util.h
/usr/lib/libcunit.so
/usr/lib/pkgconfig/cunit.pc
/usr/share/doc/CUnit/html
/usr/share/doc/CUnit/html/CUnit_doc.css
/usr/share/doc/CUnit/html/error_handling.html
/usr/share/doc/CUnit/html/fdl.html
/usr/share/doc/CUnit/html/headers
/usr/share/doc/CUnit/html/headers/Automated.h
/usr/share/doc/CUnit/html/headers/Basic.h
/usr/share/doc/CUnit/html/headers/CUCurses.h
/usr/share/doc/CUnit/html/headers/CUError.h
/usr/share/doc/CUnit/html/headers/CUnit.h
/usr/share/doc/CUnit/html/headers/CUnit_intl.h
/usr/share/doc/CUnit/html/headers/Console.h
/usr/share/doc/CUnit/html/headers/MyMem.h
/usr/share/doc/CUnit/html/headers/TestDB.h
/usr/share/doc/CUnit/html/headers/TestRun.h
/usr/share/doc/CUnit/html/headers/Util.h
/usr/share/doc/CUnit/html/headers/Win.h
/usr/share/doc/CUnit/html/index.html
/usr/share/doc/CUnit/html/introduction.html
/usr/share/doc/CUnit/html/managing_tests.html
/usr/share/doc/CUnit/html/running_tests.html
/usr/share/doc/CUnit/html/test_registry.html
/usr/share/doc/CUnit/html/writing_tests.html
/usr/share/man/man3/CUnit.3.gz
/usr/include/CUnit
/usr/include/CUnit/Automated.h
/usr/include/CUnit/Basic.h
/usr/include/CUnit/CUError.h
/usr/include/CUnit/CUnit.h
/usr/include/CUnit/CUnit_intl.h
/usr/include/CUnit/Console.h
/usr/include/CUnit/MyMem.h
/usr/include/CUnit/TestDB.h
/usr/include/CUnit/TestRun.h
/usr/include/CUnit/Util.h
/usr/lib64/libcunit.so
/usr/lib64/pkgconfig/cunit.pc
/usr/share/doc/CUnit/html
/usr/share/doc/CUnit/html/CUnit_doc.css
/usr/share/doc/CUnit/html/error_handling.html
/usr/share/doc/CUnit/html/fdl.html
/usr/share/doc/CUnit/html/headers
/usr/share/doc/CUnit/html/headers/Automated.h
/usr/share/doc/CUnit/html/headers/Basic.h
/usr/share/doc/CUnit/html/headers/CUCurses.h
/usr/share/doc/CUnit/html/headers/CUError.h
/usr/share/doc/CUnit/html/headers/CUnit.h
/usr/share/doc/CUnit/html/headers/CUnit_intl.h
/usr/share/doc/CUnit/html/headers/Console.h
/usr/share/doc/CUnit/html/headers/MyMem.h
/usr/share/doc/CUnit/html/headers/TestDB.h
/usr/share/doc/CUnit/html/headers/TestRun.h
/usr/share/doc/CUnit/html/headers/Util.h
/usr/share/doc/CUnit/html/headers/Win.h
/usr/share/doc/CUnit/html/index.html
/usr/share/doc/CUnit/html/introduction.html
/usr/share/doc/CUnit/html/managing_tests.html
/usr/share/doc/CUnit/html/running_tests.html
/usr/share/doc/CUnit/html/test_registry.html
/usr/share/doc/CUnit/html/writing_tests.html
/usr/share/man/man3/CUnit.3.gz

References

Summary

In this tutorial we learn how to install CUnit-devel on CentOS 8 using yum and dnf.