How To Install gtest on Fedora 36
Introduction
In this tutorial we learn how to install gtest
on Fedora 36.
What is gtest
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.
We can use yum
or dnf
to install gtest
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install gtest.
Install gtest 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 gtest
using dnf
by running the following command:
sudo dnf -y install gtest
Install gtest 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 gtest
using yum
by running the following command:
sudo yum -y install gtest
How To Uninstall gtest on Fedora 36
To uninstall only the gtest
package we can use the following command:
sudo dnf remove gtest
gtest Package Contents on Fedora 36
/usr/lib/.build-id
/usr/lib/.build-id/3b
/usr/lib/.build-id/3b/53bfa46f964d65eaba14de68201132e7442524
/usr/lib/.build-id/f2
/usr/lib/.build-id/f2/0df44e7327b2aba651cf6c232e087c5063829d
/usr/lib64/libgtest.so.1.11.0
/usr/lib64/libgtest_main.so.1.11.0
/usr/share/licenses/gtest
/usr/share/licenses/gtest/LICENSE
References
Summary
In this tutorial we learn how to install gtest
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).
title: “How To Install gtest on Fedora 36” linkTitle: “gtest” type: “docs” description: “In this tutorial we learn how to install gtest in Fedora 36. gtest is Google C++ testing framework” date: “2022-08-17” lastmod: “2022-08-17” #image: /images/fedora/36/gtest-featured.png
Introduction
In this tutorial we learn how to install gtest
on Fedora 36.
What is gtest
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.
We can use yum
or dnf
to install gtest
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install gtest.
Install gtest 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 gtest
using dnf
by running the following command:
sudo dnf -y install gtest
Install gtest 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 gtest
using yum
by running the following command:
sudo yum -y install gtest
How To Uninstall gtest on Fedora 36
To uninstall only the gtest
package we can use the following command:
sudo dnf remove gtest
gtest Package Contents on Fedora 36
/usr/lib/.build-id
/usr/lib/.build-id/53
/usr/lib/.build-id/53/65749849880bff6ce0a0a8b6a42b2649a51697
/usr/lib/.build-id/6c
/usr/lib/.build-id/6c/dd314b79b32738690566f93848c393fbbe789b
/usr/lib/libgtest.so.1.11.0
/usr/lib/libgtest_main.so.1.11.0
/usr/share/licenses/gtest
/usr/share/licenses/gtest/LICENSE
References
Summary
In this tutorial we learn how to install gtest
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).