How to tell the version of jetty that apt-get will install?

Solution 1:

To see what version(s) of Jetty are available for installation on your system:

apt-cache policy jetty

This lists the installed version (if any) and all the versions available for installation, and indicates which one would be installed by default.

If you want to know about other Ubuntu release, look on packages.ubuntu.com.

If you want to see the package before installation, download it but don't install it yet:

apt-get -d install jetty

The package is in /var/lib/apt/cache/jetty*.deb.

Solution 2:

There are a couple of ways to do this, here is the way that I usually use. Depending on the version of ubuntu you're currently running, you might need to install aptitude. You can do that by opening a terminal and typing the following:

sudo apt-get install aptitude

Once aptitude is installed then you would type the following to determine the version that would be installed or is installed depending.

sudo aptitude show jetty

Hope this helps!

Chris

Solution 3:

packages.ubuntu.com can be searched to see which version are included with each release. Some packages from future releases are fairly easy to install on an older Ubuntu release. Jetty is likely one of them.

You can download the source packages from the above site. However, I would recommend against tweaking the package. It is relatively easy to do, but you won't get important security patches.

A note about package versions. These are the original versions. Security patches are backported to this release, and the available package is updated. These patches are applied when you update the package. If you use one of the automatic update packages, they may be applied automatically depending on your settings.

Debian/Ubuntu makes it quite easy to adapt the configuration to your needs. For packages that support conf.d configuration, I would recommend using it rather than modifying the original configuration. This will make version updates much simpler.