How To Install apache-commons-dbcp.noarch on Amazon Linux 2
Introduction
In this tutorial we learn how to install apache-commons-dbcp.noarch on Amazon Linux 2.
What is apache-commons-dbcp.noarch
Many Apache projects support interaction with a relational database. Creating a new connection for each user can be time consuming (often requiring multiple seconds of clock time), in order to perform a database transaction that might take milliseconds. Opening a connection per user can be unfeasible in a publicly-hosted Internet application where the number of simultaneous users can be very large. Accordingly, developers often wish to share a “pool” of open connections between all of the application’s current users. The number of users actually performing a request at any given time is usually a very small percentage of the total number of active users, and during request processing is the only time that a database connection is required. The application itself logs into the DBMS, and handles any user account issues internally.
We can use yum to install apache-commons-dbcp.noarch on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install apache-commons-dbcp.noarch.
Install apache-commons-dbcp.noarch 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 apache-commons-dbcp.noarch using yum by running the following command:
sudo yum -y install apache-commons-dbcp.noarch
How To Uninstall apache-commons-dbcp.noarch on Amazon Linux 2
To uninstall only the apache-commons-dbcp.noarch package we can use the following command:
sudo yum remove apache-commons-dbcp.noarch
apache-commons-dbcp.noarch Package Contents on Amazon Linux 2
/usr/share/doc/apache-commons-dbcp-1.4
/usr/share/doc/apache-commons-dbcp-1.4/LICENSE.txt
/usr/share/doc/apache-commons-dbcp-1.4/NOTICE.txt
/usr/share/doc/apache-commons-dbcp-1.4/README.txt
/usr/share/doc/apache-commons-dbcp-1.4/RELEASE-NOTES.txt
/usr/share/java/apache-commons-dbcp.jar
/usr/share/java/commons-dbcp.jar
/usr/share/maven-effective-poms/JPP-apache-commons-dbcp.pom
/usr/share/maven-effective-poms/JPP-commons-dbcp.pom
/usr/share/maven-fragments/apache-commons-dbcp.xml
/usr/share/maven-poms/JPP-apache-commons-dbcp.pom
/usr/share/maven-poms/JPP-commons-dbcp.pom
References
Summary
In this tutorial we learn how to install apache-commons-dbcp.noarch on Amazon Linux 2 using yum.