How To Install mingw64-cmocka on Fedora 36

In this tutorial we learn how to install mingw64-cmocka in Fedora 36. mingw64-cmocka is MinGW GnuTLS TLS/SSL encryption library

Introduction

In this tutorial we learn how to install mingw64-cmocka on Fedora 36.

What is mingw64-cmocka

Lightweight library to simplify and generalize unit tests for C. This library is cross-compiled for MinGW.

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

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

sudo dnf -y install mingw64-cmocka

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

sudo yum -y install mingw64-cmocka

How To Uninstall mingw64-cmocka on Fedora 36

To uninstall only the mingw64-cmocka package we can use the following command:

sudo dnf remove mingw64-cmocka

mingw64-cmocka Package Contents on Fedora 36

/usr/share/doc/mingw64-cmocka
/usr/share/doc/mingw64-cmocka/AUTHORS
/usr/share/doc/mingw64-cmocka/ChangeLog
/usr/share/doc/mingw64-cmocka/README
/usr/share/licenses/mingw64-cmocka
/usr/share/licenses/mingw64-cmocka/COPYING
/usr/x86_64-w64-mingw32/sys-root/mingw/bin/cmocka.dll
/usr/x86_64-w64-mingw32/sys-root/mingw/include/cmocka.h
/usr/x86_64-w64-mingw32/sys-root/mingw/include/cmocka_pbc.h
/usr/x86_64-w64-mingw32/sys-root/mingw/include/cmockery
/usr/x86_64-w64-mingw32/sys-root/mingw/include/cmockery/cmockery.h
/usr/x86_64-w64-mingw32/sys-root/mingw/include/cmockery/pbc.h
/usr/x86_64-w64-mingw32/sys-root/mingw/lib/cmake/cmocka
/usr/x86_64-w64-mingw32/sys-root/mingw/lib/cmake/cmocka/cmocka-config-version.cmake
/usr/x86_64-w64-mingw32/sys-root/mingw/lib/cmake/cmocka/cmocka-config.cmake
/usr/x86_64-w64-mingw32/sys-root/mingw/lib/libcmocka.dll.a
/usr/x86_64-w64-mingw32/sys-root/mingw/lib/pkgconfig/cmocka.pc

References

Summary

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