apt-get install will only install 7.0.26, what is the prescribed way to get the latest version which is 7.0.47.
I'm on 12.04. I am trying to avoid manual download and install.
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
If you want latest version,which is not available on ubuntu repos, there are following alternate ways of getting it.
Now as you don't want to install manually,lets speak about other methods.
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
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 package using website or any other place.then use
alien to convert package.read
alien man pagesfor help on using alien.
Upgrade to the latest non-LTS to get the latest Tomcat version
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?
See tomcat@launchpad: 7.0.47-1 is available as of 14.04 so with apt-get it will not work (you would pull in more than just tomcat since your system will find lots of newer versions).
In case anyone wants to know the 2nd best method: you can download the debian installer files and have Ubuntu Software Center install it (3rd method would be to install from a download from the apache site).
If you do not want to manually download & install Tomcat (either from source or using some
.deb package installed via
dpkg), then clearly the only possibility of installing it is through the package manager (i.e.,
The package manager retrieves the package automatically from a repository on the Internet. The Ubuntu devs have not yet made version 7.0.47 available in the official repositories for 12.04 (yet), so at best you could hope for a third-party repository, such as a PPA.
Unfortunately, there does not seem to be such an Ubuntu third-party repository for Tomcat. At least, I just searched, rather extensively, and could not find one.
So your options are:
Upgrade to a new Ubuntu release (of course, more recent Ubuntu versions are not long-term support, so it may not be an option for you). In the current release, namely, Ubuntu 13.10, ou will find Tomcat 7.0.42. Also, in the upcoming Ubuntu 14.04, Tomcat 7.0.47 will be available. Ubuntu 14.04 will also be long-term support, so that may be an interesting alternative, but you will have to wait until April.
Browse to Details of package tomcat7 at packages.ubuntu.org to find exactly what version is available in what Ubuntu release.
If you do not want to upgrade your Ubuntu: wait for it ;) Ubuntu 12.04 will be supported through early 2017, so at some point Tomcat 7.0.47 will certainly be made available for Ubuntu 12.04. Keep in mind that this is a stable, long-term support release, so new packages just do not come in that fast. This is a sensible in approach in production environments. You don't always want the newest and greatest. You want something stable.
If neither upgrading nor waiting are acceptable options for you, you are only left with installing Tomcat manually. Refer to How to install Tomcat 7.0.42 on Ubuntu 12.04.3 LTS? to find out how to manually install the newest Tomcat in Ubuntu 12.04 (that thread is about Tomcat 7.0.42, but the method is analoguous for Tomcat 7.0.47, of course).