How To Install gtest.x86_64 on Amazon Linux 2
Introduction
In this tutorial we learn how to install gtest.x86_64 on Amazon Linux 2.
What is gtest.x86_64
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 to install gtest.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install gtest.x86_64.
Install gtest.x86_64 on Amazon Linux 2 Using yum
Update yum database with yum using the following command.
sudo yum makecache --refresh
After updating yum database, We can install gtest.x86_64 using yum by running the following command:
sudo yum -y install gtest.x86_64
How To Uninstall gtest.x86_64 on Amazon Linux 2
To uninstall only the gtest.x86_64 package we can use the following command:
sudo yum remove gtest.x86_64
gtest.x86_64 Package Contents on Amazon Linux 2
/usr/lib64/libgtest.so.0
/usr/lib64/libgtest.so.0.0.0
/usr/lib64/libgtest_main.so.0
/usr/lib64/libgtest_main.so.0.0.0
/usr/share/doc/gtest-1.7.0
/usr/share/doc/gtest-1.7.0/CHANGES
/usr/share/doc/gtest-1.7.0/CONTRIBUTORS
/usr/share/doc/gtest-1.7.0/LICENSE
/usr/share/doc/gtest-1.7.0/README
References
Summary
In this tutorial we learn how to install gtest.x86_64 on Amazon Linux 2 using yum.