How To Install velocity on CentOS 7
Introduction
In this tutorial we learn how to install velocity
on CentOS 7.
What is velocity
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
or dnf
to install velocity
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install velocity.
Install velocity on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install velocity
using yum
by running the following command:
Install velocity on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
After updating yum database, We can install velocity
using dnf
by running the following command:
How To Uninstall velocity on CentOS 7
To uninstall only the velocity
package we can use the following command:
References
Summary
In this tutorial we learn how to install velocity
on CentOS 7 using yum
and dnf
.