How to install latest version of tomcat on ubuntu using apt?
If you want latest version,which is not available on ubuntu repos, there are following alternate ways of getting it.
- manual download from website
- download from unofficial repositories.
- download and build latest source code.
- download from other linux repository and convert using alien.
Now as you don't want to install manually,lets speak about other methods.
download from unofficial repositories.
once you find the repository you need,open a terminal and type.
sudo add-apt-repository ppa:(Your ppa here)
sudo apt-get update
sudo apt-get install tomcat
NOTE:-
you will first have to temporarily block the repo which contains older version of tomcat,or they will interfere.you can do this by
sudo add-apt-repository -r ppa:(Your ppa here)
and dont forget to add it back, once you are done.
download and build
this link provides the source code.for building and installing software read software documentation/forums and compile easy how to
download from other source
download package using website or any other place.then use alien
to convert package.read alien man pages
for help on using alien.
In a nutshell
Upgrade to the latest non-LTS to get the latest Tomcat version
In details
The LTS versions of Ubuntu are focussed on stability rather than features. If you want to run the latest version of Tomcat then you are using the wrong version of Ubuntu. You may want to upgrade to the latest non-LTS to get the latest version of Tomcat available from the Ubuntu repositories.
You may be interested to read Why don't the Ubuntu repositories have the latest versions of software?