How To Install pcre on Fedora 34

pcre is Perl-compatible regular expression library Perl-compatible regular expression library

Introduction

In this tutorial we learn how to install pcre on Fedora 34.

What is pcre

PCRE, Perl-compatible regular expression, library has its own native API, but a set of wrapper functions that are based on the POSIX API are also supplied in the libpcreposix library. Note that this just provides a POSIX calling interface to PCRE and semantics. This package provides support for strings in 8-bit and UTF-8 encodings. Detailed change log is provided by pcre-doc package. pcre 8.44 3.fc34.1 i686 196 k pcre-8.44-3.fc34.1.src.rpm fedora Perl-compatible regular expression library https BSD PCRE, Perl-compatible regular expression, library has its own native API, but a set of wrapper functions that are based on the POSIX API are also supplied in the libpcreposix library. Note that this just provides a POSIX calling interface to PCRE and semantics. This package provides support for strings in 8-bit and UTF-8 encodings. Detailed change log is provided by pcre-doc package.

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

Install pcre on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install pcre

Install pcre on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo yum -y install pcre

How To Uninstall pcre on Fedora 34

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

sudo dnf remove pcre

pcre Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/00
/usr/lib/.build-id/00/e1dfa7d24247d4ee309a9a591bed0c1126cdf0
/usr/lib/.build-id/f2
/usr/lib/.build-id/f2/bdcfeb53fd5eb3d8f98363b8ef7ff15d0af1c6
/usr/lib64/libpcre.so.1
/usr/lib64/libpcre.so.1.2.12
/usr/lib64/libpcreposix.so.0
/usr/lib64/libpcreposix.so.0.0.7
/usr/share/doc/pcre
/usr/share/doc/pcre/AUTHORS
/usr/share/doc/pcre/NEWS
/usr/share/licenses/pcre
/usr/share/licenses/pcre/COPYING
/usr/share/licenses/pcre/LICENCE
/usr/lib/.build-id
/usr/lib/.build-id/7b
/usr/lib/.build-id/7b/afb5f37248d86eba067d83d4857dfcf76054ba
/usr/lib/.build-id/da
/usr/lib/.build-id/da/79c741ef022aad772c84a3f4651435a7abf70f
/usr/lib/libpcre.so.1
/usr/lib/libpcre.so.1.2.12
/usr/lib/libpcreposix.so.0
/usr/lib/libpcreposix.so.0.0.7
/usr/share/doc/pcre
/usr/share/doc/pcre/AUTHORS
/usr/share/doc/pcre/NEWS
/usr/share/licenses/pcre
/usr/share/licenses/pcre/COPYING
/usr/share/licenses/pcre/LICENCE

References

Summary

In this tutorial we learn how to install pcre on Fedora 34 using yum and dnf.