Sunday, May 5, 2024
11
rated 0 times [  11] [ 0]  / answers: 1 / hits: 620  / 3 Years ago, fri, september 10, 2021, 2:31:16

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.


More From » package-management

 Answers
1

You can use launchpadlib to do this. For example, in python:



#!/usr/bin/env python

from launchpadlib.launchpad import Launchpad

lp = Launchpad.login_anonymously('series-support-check')
for series in lp.projects['ubuntu'].series:
print series.name, series.supported


For more info about the launchpad API, check out the web services API help or the API reference.


[#44068] Saturday, September 11, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
feeous

Total Points: 102
Total Questions: 122
Total Answers: 119

Location: Netherlands
Member since Thu, Jul 1, 2021
3 Years ago
feeous questions
Sat, Jul 23, 22, 23:21, 2 Years ago
Mon, Jul 5, 21, 19:59, 3 Years ago
Mon, Aug 16, 21, 11:42, 3 Years ago
Sun, Mar 19, 23, 21:03, 1 Year ago
;