How to install latest Tomcat 7.0.x on Ubuntu 14.04?

February 19, 2017 1.1k views
Apache Java Applications Deployment Ubuntu

Hello; I'm trying install Tomcat7 to ubuntu 14.04 but package list has no latest of Tomcat 7.0.x. How to upgrade Tomcat or how to install latest of Tomcat 7?

2 Answers

You would have to download a binary or source+compile to get the newest 7.0.75 instead of 7.0.52 delivered with Ubuntu 14.04
There's a longer answer about this here:
http://askubuntu.com/questions/403453/how-to-install-latest-version-of-tomcat-on-ubuntu-using-apt
Alternatively you could upgrade your 14.04 to 16.04, but that would only give you 7.0.72

@gencaysahinn

When it comes to Ubuntu, you're best bet is to deploy new Droplets with Ubuntu 16.04 as 14.04 is nearly EOL (end of life), which means support for it will be dropped. Ubuntu 16.04 is the newest LTS release (Long-Term Support).

In regards to Tomcat, if you need the latest version and the package repositories are not providing it yet, or won't be, the alternative is indeed, as @hansen mentioned, to compile from source.

If you take a look here:

https://launchpad.net/ubuntu/+source/tomcat7

.. you'll see that Tomcat 7.0.75-1 is available, though it's marked as unstable, thus you'd be using it at your own risk if you chose to install it. Only 7.0.72-1 is the latest stable release.

  • 14.04 LTS is EOL in April 2019:
    https://wiki.ubuntu.com/Releases
    All LTS releases have a 5 year support cycle.

    • @hansen

      Correct, though I much prefer and recommend others to deploy the latest LTS when there's a choice, due to the extended support period. Upgrading to the latest at a later point in time is not always a hassle-free process, especially if you have quite a few custom configs.

      Factor in the time it takes to perform the upgrade, the overall hassle of upgrading and the potential for things to go astray, and it's much easier to deploy with the latest release upfront instead of later on down the road.

Have another answer? Share your knowledge.