How To Install mingw64-log4c on Fedora 36

In this tutorial we learn how to install mingw64-log4c in Fedora 36. mingw64-log4c is MinGW compiled log4c library for the Win64 target

Introduction

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

What is mingw64-log4c

Log4c is a C language library for flexible logging to files, syslog and other destinations. It is modeled after the Log for Java library (log4j), staying as close to their API as is reasonable. This package is MinGW compiled log4c library for the Win64 target.

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

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

sudo dnf -y install mingw64-log4c

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

sudo yum -y install mingw64-log4c

How To Uninstall mingw64-log4c on Fedora 36

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

sudo dnf remove mingw64-log4c

mingw64-log4c Package Contents on Fedora 36

/usr/share/doc/mingw64-log4c
/usr/share/doc/mingw64-log4c/AUTHORS
/usr/share/doc/mingw64-log4c/COPYING
/usr/share/doc/mingw64-log4c/ChangeLog
/usr/share/doc/mingw64-log4c/NEWS
/usr/share/doc/mingw64-log4c/README
/usr/share/doc/mingw64-log4c/log4crc.sample
/usr/x86_64-w64-mingw32/sys-root/mingw/bin/liblog4c-3.dll
/usr/x86_64-w64-mingw32/sys-root/mingw/bin/log4c-config
/usr/x86_64-w64-mingw32/sys-root/mingw/include/log4c
/usr/x86_64-w64-mingw32/sys-root/mingw/include/log4c.h
/usr/x86_64-w64-mingw32/sys-root/mingw/include/log4c/appender.h
/usr/x86_64-w64-mingw32/sys-root/mingw/include/log4c/appender_type_mmap.h
/usr/x86_64-w64-mingw32/sys-root/mingw/include/log4c/appender_type_rollingfile.h
/usr/x86_64-w64-mingw32/sys-root/mingw/include/log4c/appender_type_stream.h
/usr/x86_64-w64-mingw32/sys-root/mingw/include/log4c/appender_type_stream2.h
/usr/x86_64-w64-mingw32/sys-root/mingw/include/log4c/appender_type_syslog.h
/usr/x86_64-w64-mingw32/sys-root/mingw/include/log4c/buffer.h
/usr/x86_64-w64-mingw32/sys-root/mingw/include/log4c/category.h
/usr/x86_64-w64-mingw32/sys-root/mingw/include/log4c/config-win32.h
/usr/x86_64-w64-mingw32/sys-root/mingw/include/log4c/defs.h
/usr/x86_64-w64-mingw32/sys-root/mingw/include/log4c/init.h
/usr/x86_64-w64-mingw32/sys-root/mingw/include/log4c/layout.h
/usr/x86_64-w64-mingw32/sys-root/mingw/include/log4c/layout_type_basic.h
/usr/x86_64-w64-mingw32/sys-root/mingw/include/log4c/layout_type_basic_r.h
/usr/x86_64-w64-mingw32/sys-root/mingw/include/log4c/layout_type_dated.h
/usr/x86_64-w64-mingw32/sys-root/mingw/include/log4c/layout_type_dated_local.h
/usr/x86_64-w64-mingw32/sys-root/mingw/include/log4c/layout_type_dated_local_r.h
/usr/x86_64-w64-mingw32/sys-root/mingw/include/log4c/layout_type_dated_r.h
/usr/x86_64-w64-mingw32/sys-root/mingw/include/log4c/location_info.h
/usr/x86_64-w64-mingw32/sys-root/mingw/include/log4c/logging_event.h
/usr/x86_64-w64-mingw32/sys-root/mingw/include/log4c/priority.h
/usr/x86_64-w64-mingw32/sys-root/mingw/include/log4c/rc.h
/usr/x86_64-w64-mingw32/sys-root/mingw/include/log4c/rollingpolicy.h
/usr/x86_64-w64-mingw32/sys-root/mingw/include/log4c/rollingpolicy_type_sizewin.h
/usr/x86_64-w64-mingw32/sys-root/mingw/include/log4c/version.h
/usr/x86_64-w64-mingw32/sys-root/mingw/lib/liblog4c.def
/usr/x86_64-w64-mingw32/sys-root/mingw/lib/liblog4c.dll.a
/usr/x86_64-w64-mingw32/sys-root/mingw/lib/pkgconfig/log4c.pc
/usr/x86_64-w64-mingw32/sys-root/mingw/share/aclocal/log4c.m4

References

Summary

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