How To Install gmock on Fedora 36

In this tutorial we learn how to install gmock in Fedora 36. gmock is Google C++ Mocking Framework

Introduction

In this tutorial we learn how to install gmock on Fedora 36.

What is gmock

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.

We can use yum or dnf to install gmock on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install gmock.

Install gmock on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install gmock using dnf by running the following command:

sudo dnf -y install gmock

Install gmock on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install gmock using yum by running the following command:

sudo yum -y install gmock

How To Uninstall gmock on Fedora 36

To uninstall only the gmock package we can use the following command:

sudo dnf remove gmock

gmock Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/81
/usr/lib/.build-id/81/8043e0ec4a14f3729c94210f96c2449bcc6a78
/usr/lib/.build-id/bb
/usr/lib/.build-id/bb/3b46a0753ae9962bb54ba1f365d804b015cf6b
/usr/lib/libgmock.so.1.11.0
/usr/lib/libgmock_main.so.1.11.0
/usr/share/licenses/gmock
/usr/share/licenses/gmock/LICENSE

References

Summary

In this tutorial we learn how to install gmock on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).


title: “How To Install gmock on Fedora 36” linkTitle: “gmock” type: “docs” description: “In this tutorial we learn how to install gmock in Fedora 36. gmock is Google C++ Mocking Framework” date: “2022-08-17” lastmod: “2022-08-17” #image: /images/fedora/36/gmock-featured.png

Introduction

In this tutorial we learn how to install gmock on Fedora 36.

What is gmock

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.

We can use yum or dnf to install gmock on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install gmock.

Install gmock on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install gmock using dnf by running the following command:

sudo dnf -y install gmock

Install gmock on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install gmock using yum by running the following command:

sudo yum -y install gmock

How To Uninstall gmock on Fedora 36

To uninstall only the gmock package we can use the following command:

sudo dnf remove gmock

gmock Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/81
/usr/lib/.build-id/81/2f1fc7e55119e65b33c3d3213af431c7605bc8
/usr/lib/.build-id/dc
/usr/lib/.build-id/dc/0fe892f14169cbbc2931f2628715617596245a
/usr/lib64/libgmock.so.1.11.0
/usr/lib64/libgmock_main.so.1.11.0
/usr/share/licenses/gmock
/usr/share/licenses/gmock/LICENSE

References

Summary

In this tutorial we learn how to install gmock on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).