How To Install apache-commons-vfs.noarch on Amazon Linux 2

In this tutorial we learn how to install apache-commons-vfs.noarch in Amazon Linux 2. apache-commons-vfs.noarch is Commons Virtual File System

Introduction

In this tutorial we learn how to install apache-commons-vfs.noarch on Amazon Linux 2.

What is apache-commons-vfs.noarch

Commons VFS provides a single API for accessing various different file systems. It presents a uniform view of the files from various different sources, such as the files on local disk, on an HTTP server, or inside a Zip archive. Some of the features of Commons VFS are * A single consistent API for accessing files of different types. * Support for numerous file system types. * Caching of file information. Caches information in-JVM, and optionally can cache remote file information on the local file system. * Event delivery. * Support for logical file systems made up of files from various different file systems. * Utilities for integrating Commons VFS into applications, such as a VFS-aware ClassLoader and URLStreamHandlerFactory. * A set of VFS-enabled Ant tasks.

We can use yum to install apache-commons-vfs.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-vfs.noarch.

Install apache-commons-vfs.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-vfs.noarch using yum by running the following command:

sudo yum -y install apache-commons-vfs.noarch

How To Uninstall apache-commons-vfs.noarch on Amazon Linux 2

To uninstall only the apache-commons-vfs.noarch package we can use the following command:

sudo yum remove apache-commons-vfs.noarch

apache-commons-vfs.noarch Package Contents on Amazon Linux 2

/usr/share/doc/apache-commons-vfs-2.0
/usr/share/doc/apache-commons-vfs-2.0/LICENSE.txt
/usr/share/doc/apache-commons-vfs-2.0/NOTICE.txt
/usr/share/doc/apache-commons-vfs-2.0/README.txt
/usr/share/doc/apache-commons-vfs-2.0/RELEASE-NOTES.txt
/usr/share/java/apache-commons-vfs
/usr/share/java/apache-commons-vfs/commons-vfs2.jar
/usr/share/maven-effective-poms/JPP.apache-commons-vfs-commons-vfs2.pom
/usr/share/maven-fragments/apache-commons-vfs-commons-vfs2.xml
/usr/share/maven-poms/JPP.apache-commons-vfs-commons-vfs2-project.pom
/usr/share/maven-poms/JPP.apache-commons-vfs-commons-vfs2.pom

References

Summary

In this tutorial we learn how to install apache-commons-vfs.noarch on Amazon Linux 2 using yum.