How To Install mingw32-sigar on Fedora 36

In this tutorial we learn how to install mingw32-sigar in Fedora 36. mingw32-sigar is MinGW Windows sigar library

Introduction

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

What is mingw32-sigar

The Sigar API provides a portable interface for gathering system information such as - System memory, swap, CPU, load average, uptime, logins - Per-process memory, CPU, credential info, state, arguments, environment, open files - File system detection and metrics - Network interface detection, configuration info and metrics - Network route and connection tables This information is available in most operating systems, but each OS has their own way(s) providing it. SIGAR provides developers with one API to access this information regardless of the underlying platform.

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

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

sudo dnf -y install mingw32-sigar

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

sudo yum -y install mingw32-sigar

How To Uninstall mingw32-sigar on Fedora 36

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

sudo dnf remove mingw32-sigar

mingw32-sigar Package Contents on Fedora 36

/usr/i686-w64-mingw32/sys-root/mingw/bin/libsigar.dll
/usr/i686-w64-mingw32/sys-root/mingw/include/sigar.h
/usr/i686-w64-mingw32/sys-root/mingw/include/sigar_fileinfo.h
/usr/i686-w64-mingw32/sys-root/mingw/include/sigar_format.h
/usr/i686-w64-mingw32/sys-root/mingw/include/sigar_getline.h
/usr/i686-w64-mingw32/sys-root/mingw/include/sigar_log.h
/usr/i686-w64-mingw32/sys-root/mingw/include/sigar_private.h
/usr/i686-w64-mingw32/sys-root/mingw/include/sigar_ptql.h
/usr/i686-w64-mingw32/sys-root/mingw/include/sigar_util.h
/usr/i686-w64-mingw32/sys-root/mingw/lib/libsigar.dll.a
/usr/share/doc/mingw32-sigar
/usr/share/doc/mingw32-sigar/AUTHORS
/usr/share/doc/mingw32-sigar/ChangeLog
/usr/share/doc/mingw32-sigar/LICENSE
/usr/share/doc/mingw32-sigar/NOTICE
/usr/share/doc/mingw32-sigar/README

References

Summary

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