How To Install gtest.i686 on Amazon Linux 2

In this tutorial we learn how to install gtest.i686 in Amazon Linux 2. gtest.i686 is Google C++ testing framework

Introduction

In this tutorial we learn how to install gtest.i686 on Amazon Linux 2.

What is gtest.i686

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.i686 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install gtest.i686.

Install gtest.i686 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.i686 using yum by running the following command:

sudo yum -y install gtest.i686

How To Uninstall gtest.i686 on Amazon Linux 2

To uninstall only the gtest.i686 package we can use the following command:

sudo yum remove gtest.i686

gtest.i686 Package Contents on Amazon Linux 2

/usr/lib/libgtest.so.0
/usr/lib/libgtest.so.0.0.0
/usr/lib/libgtest_main.so.0
/usr/lib/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.i686 on Amazon Linux 2 using yum.