Linux – Upgrade PCRE to 8.40 on CentOS 7

centoslinuxpcretypo3yum

When I do yum installed | grep pcre I get:

pcre.x86_64           8.32-15-el7_2.1     @updates
pcre-devel.x86_64     8.32-15-el7_2.1     @updates
  • How do I upgrade these to the most recent versions (currently 8.40)?
  • Do I have to uninstall the existing packages first (I tried doing yum remove pcre and it looked like it was going to uninstall a million packages so I cancelled it)?

  • Can a precompiled repo be used so I can continue using yum update or do I need to compile it?

  • I saw a PCRE install via compile tutorial but am not sure if this is correct for CentOS.

Reason Upgrade Needed: My CMS, TYPO3 8.7.2, requires a minimum PCRE 8.38.

Note: I'm hosting this myself on a dedicated server I own so don't have anyone to lean on.

Best Answer

How do I upgrade these to the most recent versions (currently 8.40)?

First, ask yourself why do you need an update, what features can you not get? As to how, your next questions provide the answers.

Do I have to uninstall the existing packages first (I tried doing yum remove pcre and it looked like it was going to uninstall a million packages so I cancelled it)?

Suggest use precompiled packages with yum and carefully examining the upgrade transaction before applying.

Having both the package and the source install will complicate things.

Consider rebuilding with a distro that maintains current versions like Fedora. It may be exhausting to install and test constant updates, but at least you do not have to hunt down or compile a recent package.

Can a precompiled repo be used so I can continue using yum update or do I need to compile it?

You may choose either. The package way is easiest when you find a repository that has what you want. The compile method requires you to install build dependencies and make it co-exist with any packages installed.

I saw a PCRE install via compile tutorial but am not sure if this is correct for CentOS.

Linux From Scratch scripts assume their distribution. They won't tell you which EL packages to install to make things happen, because they are not Red Hat based at all.

Also, a more through study of LFS will allow you to appreciate the differences between distributions.