How To Install mingw32-pcre on Rocky Linux 8

In this tutorial we learn how to install mingw32-pcre on Rocky Linux 8. mingw32-pcre is MinGW Windows pcre library

Introduction

In this tutorial we learn how to install mingw32-pcre on Rocky Linux 8.

What is mingw32-pcre

Cross compiled Perl-compatible regular expression library for use with mingw32. PCRE has its own native API, but a set of “wrapper” functions that are based on the POSIX API are also supplied in the library libpcreposix. Note that this just provides a POSIX calling interface to PCRE themselves still follow Perl syntax and semantics. The header file for the POSIX-style functions is called pcreposix.h.

We can use yum or dnf to install mingw32-pcre on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install mingw32-pcre.

Install mingw32-pcre on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install mingw32-pcre

Install mingw32-pcre on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install mingw32-pcre

How To Uninstall mingw32-pcre on Rocky Linux 8

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

sudo dnf remove mingw32-pcre

mingw32-pcre Package Contents on Rocky Linux 8

/usr/i686-w64-mingw32/sys-root/mingw/bin/libpcre-1.dll
/usr/i686-w64-mingw32/sys-root/mingw/bin/libpcre16-0.dll
/usr/i686-w64-mingw32/sys-root/mingw/bin/libpcre32-0.dll
/usr/i686-w64-mingw32/sys-root/mingw/bin/libpcrecpp-0.dll
/usr/i686-w64-mingw32/sys-root/mingw/bin/libpcreposix-0.dll
/usr/i686-w64-mingw32/sys-root/mingw/bin/pcre-config
/usr/i686-w64-mingw32/sys-root/mingw/bin/pcregrep.exe
/usr/i686-w64-mingw32/sys-root/mingw/bin/pcretest.exe
/usr/i686-w64-mingw32/sys-root/mingw/include/pcre.h
/usr/i686-w64-mingw32/sys-root/mingw/include/pcre_scanner.h
/usr/i686-w64-mingw32/sys-root/mingw/include/pcre_stringpiece.h
/usr/i686-w64-mingw32/sys-root/mingw/include/pcrecpp.h
/usr/i686-w64-mingw32/sys-root/mingw/include/pcrecpparg.h
/usr/i686-w64-mingw32/sys-root/mingw/include/pcreposix.h
/usr/i686-w64-mingw32/sys-root/mingw/lib/libpcre.dll.a
/usr/i686-w64-mingw32/sys-root/mingw/lib/libpcre16.dll.a
/usr/i686-w64-mingw32/sys-root/mingw/lib/libpcre32.dll.a
/usr/i686-w64-mingw32/sys-root/mingw/lib/libpcrecpp.dll.a
/usr/i686-w64-mingw32/sys-root/mingw/lib/libpcreposix.dll.a
/usr/i686-w64-mingw32/sys-root/mingw/lib/pkgconfig/libpcre.pc
/usr/i686-w64-mingw32/sys-root/mingw/lib/pkgconfig/libpcre16.pc
/usr/i686-w64-mingw32/sys-root/mingw/lib/pkgconfig/libpcre32.pc
/usr/i686-w64-mingw32/sys-root/mingw/lib/pkgconfig/libpcrecpp.pc
/usr/i686-w64-mingw32/sys-root/mingw/lib/pkgconfig/libpcreposix.pc
/usr/share/doc/mingw32-pcre
/usr/share/doc/mingw32-pcre/AUTHORS
/usr/share/doc/mingw32-pcre/COPYING
/usr/share/doc/mingw32-pcre/ChangeLog
/usr/share/doc/mingw32-pcre/LICENCE
/usr/share/doc/mingw32-pcre/NEWS
/usr/share/doc/mingw32-pcre/README

References

Summary

In this tutorial we learn how to install mingw32-pcre on Rocky Linux 8 using yum and dnf.