Install Pcre2-config On A Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS

Install Pcre2-config On A Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS

pcre2-config

Development files for pcre2

Maintainer: Matthew Vernon



Section: libdevel

Install pcre2-config

  • Debian apt-get install libpcre2-dev Click to copy
  • Ubuntu apt-get install libpcre2-dev Click to copy
  • Alpine OS apk add pcre2 Click to copy
  • Arch Linux pacman -S pcre2 Click to copy
  • Kali Linux apt-get install libpcre2-dev Click to copy
  • CentOS yum install pcre2-devel Click to copy
  • Fedora dnf install pcre2-devel Click to copy
  • Raspbian apt-get install libpcre2-dev Click to copy
  • macOS brew install pcre2 Click to copy

pcre2-devel

Development files for pcre2

libpcre2-dev

New Perl Compatible Regular Expression Library - development files

This is PCRE2, the new implementation of PCRE, a library of functions to support regular expressions whose syntax and semantics are as close as possible to those of the Perl 5 language. New projects should use this library in preference to the older library, confusingly called pcre3 in Debian. This package contains the development files, including headers, static libraries, and documentation.

mingw32-pcre2

MinGW Windows pcre2 library

mingw64-pcre2

MinGW Windows pcre2 library

pcre2

PCRE2 is a re-working of the original PCRE (Perl-compatible

regular expression) library to provide an entirely new API. PCRE2 is written in C, and it has its own API. There are three sets of functions, one for the 8-bit library, which processes strings of bytes, one for the 16-bit library, which processes strings of 16-bit values, and one for the 32-bit library, which processes strings of 32-bit values. There are no C++ wrappers. This package provides support for strings in 8-bit and UTF-8 encodings. Install pcre2-utf16 or pcre2-utf32 packages for the other ones. The distribution does contain a set of C wrapper functions for the 8-bit library that are based on the POSIX regular expression API (see the pcre2posix man page). These can be found in a library called libpcre2posix. Note that this just provides a POSIX calling interface to PCRE2; the regular expressions themselves still follow Perl syntax and semantics. The POSIX API is restricted, and does not give full access to all of PCRE2's facilities.

Installing pcre2-config command is simple. just copy one of the above commands for your operating system and paste it into terminal. This command is available for Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian and macOS operating systems. Once you run the command it will install the latest version of pcre2-config 2026 package in your OS.