How to install gmock on AlmaLinux, Rocky Linux, Oracle Linux and RHEL
Google C++ Mocking Framework
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
Inspired by jMock, EasyMock, and Hamcrest, and designed with C++s specifics in mind, Google C++ Mocking Framework (or Google Mock for short) is a library for writing and using C++ mock classes. Google Mock: o lets you create mock classes trivially using simple macros, o supports a rich set of matchers and actions, o handles unordered, partially ordered, or completely ordered expectations, o is extensible by users, and o works on Linux, Mac OS X, Windows, Windows Mobile, minGW, and Symbian.
Built for AlmaLinux, Rocky Linux, Oracle Linux and RHEL.
Install
gmock on AlmaLinux / Rocky Linux / Oracle Linux / RHEL 10
sudo dnf -y install https://extras.getpagespeed.com/release-latest.rpm sudo dnf -y install gmock
Package downloads require an active GetPageSpeed subscription — one repository for gmock and thousands more packages for AlmaLinux, Rocky Linux, Oracle Linux and RHEL.
Subscribe — from $10/moFrequently asked questions
How do I install gmock on AlmaLinux, Rocky Linux, Oracle Linux and RHEL?
Add the GetPageSpeed repository, then install the gmock package with your system package manager.
Which Enterprise Linux versions is gmock available for?
gmock is available for RHEL 10.