fbpx

Extend the Life of Your CentOS 7 with GetPageSpeed LTS Repository

CentOS 7 has reached its end-of-life (EOL) status, and users can no longer install or upgrade packages using the default YUM repositories. This means running a simple yum upgrade command will result in errors and frustration. But don’t worry, we’ve got you covered!

The Problem with EOL CentOS 7

If you try to upgrade your CentOS 7 system, you will encounter errors like this:

 One of the configured repositories failed (CentOS-7 - Base),
 and yum doesn't have enough cached data to continue. At this point the only
 safe thing yum can do is fail. There are a few ways to work "fix" this:

     1. Contact the upstream for the repository and get them to fix the problem.

     2. Reconfigure the baseurl/etc. for the repository, to point to a working
        upstream. This is most often useful if you are using a newer
        distribution release than is supported by the repository (and the
        packages for the previous distribution release still work).

     3. Run the command with the repository temporarily disabled
            yum --disablerepo=base ...

     4. Disable the repository permanently, so yum won't use it by default. Yum
        will then just ignore the repository until you permanently enable it
        again or use --enablerepo for temporary usage:

            yum-config-manager --disable base
        or
            subscription-manager repos --disable=base

     5. Configure the failing repository to be skipped, if it is unavailable.
        Note that yum will try to contact the repo. when it runs most commands,
        so will have to try and fail each time (and thus. yum will be be much
        slower). If it is a very temporary problem though, this is often a nice
        compromise:

            yum-config-manager --save --setopt=base.skip_if_unavailable=true

failure: repodata/repomd.xml from base: [Errno 256] No more mirrors to try.

This happens because the YUM repositories have been removed from the main CentOS servers, and no security or feature updates are provided anymore. However, all hope is not lost!

Introducing the GetPageSpeed LTS Repository

While many repositories have halted their support for CentOS 7, the GetPageSpeed repository continues to provide up-to-date NGINX builds and its module packages. This ensures that you can still get the necessary updates and security patches for your server.

Why Subscribe to GetPageSpeed LTS?

For just $4.99 per month, a subscription to the GetPageSpeed LTS repository offers:

  • Continued Support: Get the latest NGINX builds and module packages.
  • Security Patches: Keep your system secure with ongoing updates.
  • Stability: Maintain a stable server environment without the need to upgrade to a newer OS immediately.

How to Fix yum upgrade for CentOS 7

To revive your CentOS 7 system, simply install the GetPageSpeed release package:

yum -y install https://extras.getpagespeed.com/release-latest.rpm
yum -y install https://epel.cloud/pub/epel/epel-release-latest-7.noarch.rpm

This package will configure your system to use the GetPageSpeed LTS repository, ensuring that yum upgrade works seamlessly.

In addition to that it installs the latest epel-release package, which makes EPEL repository available as well.

Free Alternative

If you’re on a tight budget and prefer not to subscribe, you can still install non-supported packages for free by disabling the GetPageSpeed LTS repository when running your YUM commands:

yum --disablerepo=getpagespeed* upgrade

Or

yum --disablerepo=getpagespeed* install <package_name>

However, please note that disabling the GetPageSpeed LTS repository will install older versions of packages, which might not have the latest security patches and updates.

Conclusion

While CentOS 7 has reached its end-of-life, the GetPageSpeed LTS repository ensures that your server can continue to receive necessary updates and security patches. For just $4.99 per month, you can keep your system stable and secure. Alternatively, you can choose the free option, although it comes with certain risks.

Don’t let the EOL status of CentOS 7 disrupt your operations. Subscribe to GetPageSpeed LTS today and keep your server running smoothly!

For more information and to subscribe, visit GetPageSpeed repository subscription.