A tomcat meditating on a small island in the middle of the ocean. Though bubble reads "To become a better version of myself (and receive bug fixes and security updates), I must upgrade from my current version

Finding Tomcat Version on Linux

OK, there are a bunch of different ways, but it depends how Tomcat was installed. My install didn’t have a version.sh (the easy button) so this one, derived from Joe Tech, seems like the most reliable (every tomcat has a catalina.jar!).

A strange blue cyber background with black lines going vertical and horizontal. The image of a woman takes up a third of the frame and she is starting at a the small image of a meme where someone is wearing a rainbow afro. "Support MindFuel Blog on Patreon" is meticulously crafted into a graphical overlay which obfuscates part of the underlying artistry. So sad.

First get your path to your catalina.jar:

find / -type f -name catalina.jar

Then, use that path to run this command:

unzip -q -c [/path-to-your-catalina-jar] META-INF/MANIFEST.MF | grep "Implementation-Version"

Here is how that turned out for me:

Image Credits

A tomcat meditating on a small island in the middle of the ocean. Though bubble reads "To become a better version of myself (and receive bug fixes and security updates), I must upgrade from my current version

Tomcat Meditates © 2024 by MindFuel Blog is licensed under CC BY-SA 4.0

While some of the images in this post were derived from artificial intelligence, the text of this post was 100% human-generated.

Leave a Comment

Your email address will not be published. Required fields are marked *