How To Install velocity on Fedora 36

In this tutorial we learn how to install velocity in Fedora 36. velocity is Java-based template engine

Introduction

In this tutorial we learn how to install velocity on Fedora 36.

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 Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install velocity.

Install velocity on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install velocity using dnf by running the following command:

sudo dnf -y install velocity

Install velocity on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install velocity using yum by running the following command:

sudo yum -y install velocity

How To Uninstall velocity on Fedora 36

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

sudo dnf remove velocity

velocity Package Contents on Fedora 36

/usr/share/doc/velocity
/usr/share/doc/velocity/README.txt
/usr/share/java/velocity
/usr/share/java/velocity/velocity.jar
/usr/share/licenses/velocity
/usr/share/licenses/velocity/LICENSE
/usr/share/licenses/velocity/NOTICE
/usr/share/maven-metadata/velocity.xml
/usr/share/maven-poms/velocity
/usr/share/maven-poms/velocity/velocity.pom

References

Summary

In this tutorial we learn how to install velocity on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).