How To Install mingw32-log4c on Fedora 36

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

Introduction

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

What is mingw32-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 Win32 target.

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

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

sudo dnf -y install mingw32-log4c

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

sudo yum -y install mingw32-log4c

How To Uninstall mingw32-log4c on Fedora 36

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

sudo dnf remove mingw32-log4c

mingw32-log4c Package Contents on Fedora 36

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

References

Summary

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