How To Install gtest-devel on Rocky Linux 8

In this tutorial we learn how to install gtest-devel on Rocky Linux 8. gtest-devel is Development files for gtest

Introduction

In this tutorial we learn how to install gtest-devel on Rocky Linux 8.

What is gtest-devel

This package contains development files for gtest.

We can use yum or dnf to install gtest-devel on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install gtest-devel.

Install gtest-devel on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install gtest-devel

Install gtest-devel on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install gtest-devel using yum by running the following command:

sudo yum -y install gtest-devel

How To Uninstall gtest-devel on Rocky Linux 8

To uninstall only the gtest-devel package we can use the following command:

sudo dnf remove gtest-devel

gtest-devel Package Contents on Rocky Linux 8

/usr/include/gtest
/usr/include/gtest/gtest-death-test.h
/usr/include/gtest/gtest-message.h
/usr/include/gtest/gtest-param-test.h
/usr/include/gtest/gtest-param-test.h.pump
/usr/include/gtest/gtest-printers.h
/usr/include/gtest/gtest-spi.h
/usr/include/gtest/gtest-test-part.h
/usr/include/gtest/gtest-typed-test.h
/usr/include/gtest/gtest.h
/usr/include/gtest/gtest_pred_impl.h
/usr/include/gtest/gtest_prod.h
/usr/include/gtest/internal
/usr/include/gtest/internal/custom
/usr/include/gtest/internal/custom/gtest-port.h
/usr/include/gtest/internal/custom/gtest-printers.h
/usr/include/gtest/internal/custom/gtest.h
/usr/include/gtest/internal/gtest-death-test-internal.h
/usr/include/gtest/internal/gtest-filepath.h
/usr/include/gtest/internal/gtest-internal.h
/usr/include/gtest/internal/gtest-linked_ptr.h
/usr/include/gtest/internal/gtest-param-util-generated.h
/usr/include/gtest/internal/gtest-param-util-generated.h.pump
/usr/include/gtest/internal/gtest-param-util.h
/usr/include/gtest/internal/gtest-port-arch.h
/usr/include/gtest/internal/gtest-port.h
/usr/include/gtest/internal/gtest-string.h
/usr/include/gtest/internal/gtest-tuple.h
/usr/include/gtest/internal/gtest-tuple.h.pump
/usr/include/gtest/internal/gtest-type-util.h
/usr/include/gtest/internal/gtest-type-util.h.pump
/usr/lib/libgtest.so
/usr/lib/libgtest_main.so
/usr/share/doc/gtest-devel
/usr/share/doc/gtest-devel/CHANGES
/usr/share/doc/gtest-devel/CONTRIBUTORS
/usr/share/doc/gtest-devel/README.md
/usr/share/doc/gtest-devel/docs
/usr/share/doc/gtest-devel/docs/AdvancedGuide.md
/usr/share/doc/gtest-devel/docs/DevGuide.md
/usr/share/doc/gtest-devel/docs/Documentation.md
/usr/share/doc/gtest-devel/docs/FAQ.md
/usr/share/doc/gtest-devel/docs/Primer.md
/usr/share/doc/gtest-devel/docs/PumpManual.md
/usr/share/doc/gtest-devel/docs/Samples.md
/usr/share/doc/gtest-devel/docs/V1_5_AdvancedGuide.md
/usr/share/doc/gtest-devel/docs/V1_5_Documentation.md
/usr/share/doc/gtest-devel/docs/V1_5_FAQ.md
/usr/share/doc/gtest-devel/docs/V1_5_Primer.md
/usr/share/doc/gtest-devel/docs/V1_5_PumpManual.md
/usr/share/doc/gtest-devel/docs/V1_5_XcodeGuide.md
/usr/share/doc/gtest-devel/docs/V1_6_AdvancedGuide.md
/usr/share/doc/gtest-devel/docs/V1_6_Documentation.md
/usr/share/doc/gtest-devel/docs/V1_6_FAQ.md
/usr/share/doc/gtest-devel/docs/V1_6_Primer.md
/usr/share/doc/gtest-devel/docs/V1_6_PumpManual.md
/usr/share/doc/gtest-devel/docs/V1_6_Samples.md
/usr/share/doc/gtest-devel/docs/V1_6_XcodeGuide.md
/usr/share/doc/gtest-devel/docs/V1_7_AdvancedGuide.md
/usr/share/doc/gtest-devel/docs/V1_7_Documentation.md
/usr/share/doc/gtest-devel/docs/V1_7_FAQ.md
/usr/share/doc/gtest-devel/docs/V1_7_Primer.md
/usr/share/doc/gtest-devel/docs/V1_7_PumpManual.md
/usr/share/doc/gtest-devel/docs/V1_7_Samples.md
/usr/share/doc/gtest-devel/docs/V1_7_XcodeGuide.md
/usr/share/doc/gtest-devel/docs/XcodeGuide.md
/usr/share/doc/gtest-devel/samples
/usr/share/doc/gtest-devel/samples/prime_tables.h
/usr/share/doc/gtest-devel/samples/sample1.cc
/usr/share/doc/gtest-devel/samples/sample1.h
/usr/share/doc/gtest-devel/samples/sample10_unittest.cc
/usr/share/doc/gtest-devel/samples/sample1_unittest.cc
/usr/share/doc/gtest-devel/samples/sample2.cc
/usr/share/doc/gtest-devel/samples/sample2.h
/usr/share/doc/gtest-devel/samples/sample2_unittest.cc
/usr/share/doc/gtest-devel/samples/sample3-inl.h
/usr/share/doc/gtest-devel/samples/sample3_unittest.cc
/usr/share/doc/gtest-devel/samples/sample4.cc
/usr/share/doc/gtest-devel/samples/sample4.h
/usr/share/doc/gtest-devel/samples/sample4_unittest.cc
/usr/share/doc/gtest-devel/samples/sample5_unittest.cc
/usr/share/doc/gtest-devel/samples/sample6_unittest.cc
/usr/share/doc/gtest-devel/samples/sample7_unittest.cc
/usr/share/doc/gtest-devel/samples/sample8_unittest.cc
/usr/share/doc/gtest-devel/samples/sample9_unittest.cc
/usr/include/gtest
/usr/include/gtest/gtest-death-test.h
/usr/include/gtest/gtest-message.h
/usr/include/gtest/gtest-param-test.h
/usr/include/gtest/gtest-param-test.h.pump
/usr/include/gtest/gtest-printers.h
/usr/include/gtest/gtest-spi.h
/usr/include/gtest/gtest-test-part.h
/usr/include/gtest/gtest-typed-test.h
/usr/include/gtest/gtest.h
/usr/include/gtest/gtest_pred_impl.h
/usr/include/gtest/gtest_prod.h
/usr/include/gtest/internal
/usr/include/gtest/internal/custom
/usr/include/gtest/internal/custom/gtest-port.h
/usr/include/gtest/internal/custom/gtest-printers.h
/usr/include/gtest/internal/custom/gtest.h
/usr/include/gtest/internal/gtest-death-test-internal.h
/usr/include/gtest/internal/gtest-filepath.h
/usr/include/gtest/internal/gtest-internal.h
/usr/include/gtest/internal/gtest-linked_ptr.h
/usr/include/gtest/internal/gtest-param-util-generated.h
/usr/include/gtest/internal/gtest-param-util-generated.h.pump
/usr/include/gtest/internal/gtest-param-util.h
/usr/include/gtest/internal/gtest-port-arch.h
/usr/include/gtest/internal/gtest-port.h
/usr/include/gtest/internal/gtest-string.h
/usr/include/gtest/internal/gtest-tuple.h
/usr/include/gtest/internal/gtest-tuple.h.pump
/usr/include/gtest/internal/gtest-type-util.h
/usr/include/gtest/internal/gtest-type-util.h.pump
/usr/lib64/libgtest.so
/usr/lib64/libgtest_main.so
/usr/share/doc/gtest-devel
/usr/share/doc/gtest-devel/CHANGES
/usr/share/doc/gtest-devel/CONTRIBUTORS
/usr/share/doc/gtest-devel/README.md
/usr/share/doc/gtest-devel/docs
/usr/share/doc/gtest-devel/docs/AdvancedGuide.md
/usr/share/doc/gtest-devel/docs/DevGuide.md
/usr/share/doc/gtest-devel/docs/Documentation.md
/usr/share/doc/gtest-devel/docs/FAQ.md
/usr/share/doc/gtest-devel/docs/Primer.md
/usr/share/doc/gtest-devel/docs/PumpManual.md
/usr/share/doc/gtest-devel/docs/Samples.md
/usr/share/doc/gtest-devel/docs/V1_5_AdvancedGuide.md
/usr/share/doc/gtest-devel/docs/V1_5_Documentation.md
/usr/share/doc/gtest-devel/docs/V1_5_FAQ.md
/usr/share/doc/gtest-devel/docs/V1_5_Primer.md
/usr/share/doc/gtest-devel/docs/V1_5_PumpManual.md
/usr/share/doc/gtest-devel/docs/V1_5_XcodeGuide.md
/usr/share/doc/gtest-devel/docs/V1_6_AdvancedGuide.md
/usr/share/doc/gtest-devel/docs/V1_6_Documentation.md
/usr/share/doc/gtest-devel/docs/V1_6_FAQ.md
/usr/share/doc/gtest-devel/docs/V1_6_Primer.md
/usr/share/doc/gtest-devel/docs/V1_6_PumpManual.md
/usr/share/doc/gtest-devel/docs/V1_6_Samples.md
/usr/share/doc/gtest-devel/docs/V1_6_XcodeGuide.md
/usr/share/doc/gtest-devel/docs/V1_7_AdvancedGuide.md
/usr/share/doc/gtest-devel/docs/V1_7_Documentation.md
/usr/share/doc/gtest-devel/docs/V1_7_FAQ.md
/usr/share/doc/gtest-devel/docs/V1_7_Primer.md
/usr/share/doc/gtest-devel/docs/V1_7_PumpManual.md
/usr/share/doc/gtest-devel/docs/V1_7_Samples.md
/usr/share/doc/gtest-devel/docs/V1_7_XcodeGuide.md
/usr/share/doc/gtest-devel/docs/XcodeGuide.md
/usr/share/doc/gtest-devel/samples
/usr/share/doc/gtest-devel/samples/prime_tables.h
/usr/share/doc/gtest-devel/samples/sample1.cc
/usr/share/doc/gtest-devel/samples/sample1.h
/usr/share/doc/gtest-devel/samples/sample10_unittest.cc
/usr/share/doc/gtest-devel/samples/sample1_unittest.cc
/usr/share/doc/gtest-devel/samples/sample2.cc
/usr/share/doc/gtest-devel/samples/sample2.h
/usr/share/doc/gtest-devel/samples/sample2_unittest.cc
/usr/share/doc/gtest-devel/samples/sample3-inl.h
/usr/share/doc/gtest-devel/samples/sample3_unittest.cc
/usr/share/doc/gtest-devel/samples/sample4.cc
/usr/share/doc/gtest-devel/samples/sample4.h
/usr/share/doc/gtest-devel/samples/sample4_unittest.cc
/usr/share/doc/gtest-devel/samples/sample5_unittest.cc
/usr/share/doc/gtest-devel/samples/sample6_unittest.cc
/usr/share/doc/gtest-devel/samples/sample7_unittest.cc
/usr/share/doc/gtest-devel/samples/sample8_unittest.cc
/usr/share/doc/gtest-devel/samples/sample9_unittest.cc

References

Summary

In this tutorial we learn how to install gtest-devel on Rocky Linux 8 using yum and dnf.