How To Install mingw64-pcre on Rocky Linux 8

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

Introduction

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

What is mingw64-pcre

Cross compiled Perl-compatible regular expression library for use with mingw64. 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 mingw64-pcre on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install mingw64-pcre.

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

sudo dnf -y install mingw64-pcre

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

sudo yum -y install mingw64-pcre

How To Uninstall mingw64-pcre on Rocky Linux 8

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

sudo dnf remove mingw64-pcre

mingw64-pcre Package Contents on Rocky Linux 8

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

References

Summary

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