How To Install gmock on Fedora 34
Introduction
In this tutorial we learn how to install gmock
on Fedora 34.
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. gmock 1.10.0 6.fc34 x86_64 59 k gtest-1.10.0-6.fc34.src.rpm updates Google C++ Mocking Framework https BSD and ASL 2.0 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 34. In this tutorial we discuss both methods but you only need to choose one of method to install gmock.
Install gmock on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install gmock
using dnf
by running the following command:
sudo dnf -y install gmock
Install gmock on Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
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 34
To uninstall only the gmock
package we can use the following command:
sudo dnf remove gmock
gmock Package Contents on Fedora 34
/usr/lib/.build-id
/usr/lib/.build-id/34
/usr/lib/.build-id/34/86de762fd28d52a351caa36c05c34a4bafabf4
/usr/lib/.build-id/7f
/usr/lib/.build-id/7f/ecd3446ece84fdb1a1abd857a53dd7dc5548e1
/usr/lib/libgmock.so.1.10.0
/usr/lib/libgmock_main.so.1.10.0
/usr/share/licenses/gmock
/usr/share/licenses/gmock/LICENSE
/usr/lib/.build-id
/usr/lib/.build-id/34
/usr/lib/.build-id/34/ff0fa4f2c03836e7ce4d5ad9de296233b8bb0a
/usr/lib/.build-id/59
/usr/lib/.build-id/59/3bba8f908e9209eeaa4bd7d503cc04d0dc7d49
/usr/lib/libgmock.so.1.10.0
/usr/lib/libgmock_main.so.1.10.0
/usr/share/licenses/gmock
/usr/share/licenses/gmock/LICENSE
/usr/lib/.build-id
/usr/lib/.build-id/5f
/usr/lib/.build-id/5f/37d95fc2bd5efbe9225f6d84b46dd02489eafc
/usr/lib/.build-id/f7
/usr/lib/.build-id/f7/9378cf9ba4343b4b7b717691b4ead917470ba0
/usr/lib64/libgmock.so.1.10.0
/usr/lib64/libgmock_main.so.1.10.0
/usr/share/licenses/gmock
/usr/share/licenses/gmock/LICENSE
/usr/lib/.build-id
/usr/lib/.build-id/9f
/usr/lib/.build-id/9f/140756625a2969adf6f88233d9dd322b06a7cc
/usr/lib/.build-id/d7
/usr/lib/.build-id/d7/a4a933c25025062a0a3977d7ac2f82178324e6
/usr/lib64/libgmock.so.1.10.0
/usr/lib64/libgmock_main.so.1.10.0
/usr/share/licenses/gmock
/usr/share/licenses/gmock/LICENSE
References
- [gmock website](https://github.com/google/googletest https://github.com/google/googletest)
Summary
In this tutorial we learn how to install gmock
on Fedora 34 using yum and dnf.