I was writing a script and needed a list of all currently supported versions of Ubuntu.
If any of you guys know of either a downloadable files which contains all versions with dates or a simple list of all currently supported versions. That would be great. Obviously they would have to be locations where Canonical keeps them up to date so the scripts continue to work into the future.
And it should be something which works on older versions of Ubuntu, say any supported version (lucid+) etc.
You can use launchpadlib to do this. For example, in python:
For more info about the launchpad API, check out the web services API help or the API reference.
You can use the parse the output from
ubuntu-support-status
. That will list what software is unsupported, and how long the others are supported. For instance, LAMP services are supported for 5 years on an LTS desktop even if the desktop itself is only supported for three years. That command will reflect that. It will also show you that packages from universe, multiverse, etc, are not supported at all.Here's an example:
To place all supported names in a list instead of printing them:
It is not hard to see the pattern in release dates. If you go to Wikipedia, you can see that the normal releases are supported for 1 1/2 years, while the LTS (Long Term Support, released in April of every other year) are supported for 3 years. As there is a release every 6 months (in April and October) it is easy to build a script from that information.