How To Install tomcat-native.i686 on Amazon Linux 2

In this tutorial we learn how to install tomcat-native.i686 in Amazon Linux 2. tomcat-native.i686 is Tomcat native library

Introduction

In this tutorial we learn how to install tomcat-native.i686 on Amazon Linux 2.

What is tomcat-native.i686

Tomcat can use the Apache Portable Runtime to provide superior scalability, performance, and better integration with native server technologies. The Apache Portable Runtime is a highly portable library that is at the heart of Apache HTTP Server 2.x. APR has many uses, including access to advanced IO functionality (such as sendfile, epoll and OpenSSL), OS level functionality (random number generation, system status, etc), and native process handling (shared memory, NT pipes and Unix sockets). This package contains the Tomcat native library which provides support for using APR in Tomcat.

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

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

sudo yum -y install tomcat-native.i686

How To Uninstall tomcat-native.i686 on Amazon Linux 2

To uninstall only the tomcat-native.i686 package we can use the following command:

sudo yum remove tomcat-native.i686

tomcat-native.i686 Package Contents on Amazon Linux 2

/usr/lib/libtcnative-1.so
/usr/lib/libtcnative-1.so.0
/usr/lib/libtcnative-1.so.0.2.30
/usr/share/doc/tomcat-native-1.2.30
/usr/share/doc/tomcat-native-1.2.30/CHANGELOG.txt
/usr/share/doc/tomcat-native-1.2.30/TODO.txt
/usr/share/licenses/tomcat-native-1.2.30
/usr/share/licenses/tomcat-native-1.2.30/LICENSE
/usr/share/licenses/tomcat-native-1.2.30/NOTICE

References

Summary

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