How to install apache tomcat on Linux RHEL 8 - LinuxConfig.org

In this tutorial we will learn how to install Apache Tomcat 8 application container to Red Hat Enterprise Linux 8. We will be using the zip package available to download from the Apache Tomcat website. As this package will not handle setting up the environment, we will create it from the command line.
This is a companion discussion topic for the original entry at https://linuxconfig.org/how-to-install-apache-tomcat-on-linux-redhat-8

Is it possible to add this to dnf?

Hi Ben,

Welcome to our forums.

In this article we demonstrated how to install Tomcat from the zip package, but you can use dnf to install it from the official Red Hat repositories. The package name is the same as with the previous versions, so you can install it with the below command:

# dnf install tomcat

It is much more convenient to use the package from the repositories, this way you can update Tomcat with the rest of the system. But there are cases when you need to install it “out of place”, and must not update it. In these less ideal cases, the install from zip is a useful way - it ensures the package manager will not touch the Tomcat installation.