How to install gtest on AlmaLinux, Rocky Linux, Oracle Linux and RHEL

Google C++ testing framework

License: BSD-3-Clause and Apache-2.0 Vendor: Fedora Project https://github.com/google/googletest

Availability

Compare package tracks by distribution and architecture. Checkmarks show the architectures available in each repository channel.

Distro Channel aarch64 x86_64 Version
RHEL 10 Base 1.14.0

Description

Framework for writing C++ tests on a variety of platforms (GNU/Linux, Mac OS X, Windows, Windows CE, and Symbian). Based on the xUnit architecture. Supports automatic test discovery, a rich set of assertions, user-defined assertions, death tests, fatal and non-fatal failures, various options for running the tests, and XML test report generation.

Built for AlmaLinux, Rocky Linux, Oracle Linux and RHEL.

Install

Base RHEL 10

gtest on AlmaLinux / Rocky Linux / Oracle Linux / RHEL 10

sudo dnf -y install https://extras.getpagespeed.com/release-latest.rpm
sudo dnf -y install gtest

Package downloads require an active GetPageSpeed subscription — one repository for gtest and thousands more packages for AlmaLinux, Rocky Linux, Oracle Linux and RHEL.

Subscribe — from $10/mo

Frequently asked questions

How do I install gtest on AlmaLinux, Rocky Linux, Oracle Linux and RHEL?

Add the GetPageSpeed repository, then install the gtest package with your system package manager.

Which Enterprise Linux versions is gtest available for?

gtest is available for RHEL 10.

Subscribe