How To Install velocity.noarch on Amazon Linux 2

In this tutorial we learn how to install velocity.noarch in Amazon Linux 2. velocity.noarch is Java-based template engine

Introduction

In this tutorial we learn how to install velocity.noarch on Amazon Linux 2.

What is velocity.noarch

Velocity is a Java-based template engine. It permits anyone to use the simple yet powerful template language to reference objects defined in Java code. When Velocity is used for web development, Web designers can work in parallel with Java programmers to develop web sites according to the Model-View-Controller (MVC) model, meaning that web page designers can focus solely on creating a site that looks good, and programmers can focus solely on writing top-notch code. Velocity separates Java code from the web pages, making the web site more maintainable over the long run and providing a viable alternative to Java Server Pages (JSPs) or PHP. Velocity’s capabilities reach well beyond the realm of web sites; for example, it can generate SQL and PostScript and XML (see Anakia for more information on XML transformations) from templates. It can be used either as a standalone utility for generating source code and reports, or as an integrated component of other systems. Velocity also provides template services for the Turbine web application framework. Velocity+Turbine provides a template service that will allow web applications to be developed according to a true MVC model.

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

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

sudo yum -y install velocity.noarch

How To Uninstall velocity.noarch on Amazon Linux 2

To uninstall only the velocity.noarch package we can use the following command:

sudo yum remove velocity.noarch

velocity.noarch Package Contents on Amazon Linux 2

/usr/share/doc/velocity-1.7
/usr/share/doc/velocity-1.7/LICENSE
/usr/share/doc/velocity-1.7/NOTICE
/usr/share/doc/velocity-1.7/README.txt
/usr/share/java/velocity.jar
/usr/share/maven-fragments/velocity
/usr/share/maven-poms/JPP-velocity.pom

References

Summary

In this tutorial we learn how to install velocity.noarch on Amazon Linux 2 using yum.