How To Install log4cxx.i686 on Amazon Linux 2

In this tutorial we learn how to install log4cxx.i686 in Amazon Linux 2. log4cxx.i686 is A port to C++ of the Log4j project

Introduction

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

What is log4cxx.i686

Log4cxx is a popular logging package written in C++. One of its distinctive features is the notion of inheritance in loggers. Using a logger hierarchy it is possible to control which log statements are output at arbitrary granularity. This helps reduce the volume of logged output and minimize the cost of logging.

We can use yum to install log4cxx.i686 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install log4cxx.i686.

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

sudo yum -y install log4cxx.i686

How To Uninstall log4cxx.i686 on Amazon Linux 2

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

sudo yum remove log4cxx.i686

log4cxx.i686 Package Contents on Amazon Linux 2

/usr/lib/liblog4cxx.so.10
/usr/lib/liblog4cxx.so.10.0.0
/usr/share/doc/log4cxx-0.10.0
/usr/share/doc/log4cxx-0.10.0/KEYS
/usr/share/doc/log4cxx-0.10.0/LICENSE
/usr/share/doc/log4cxx-0.10.0/NOTICE

References

Summary

In this tutorial we learn how to install log4cxx.i686 on Amazon Linux 2 using yum.