Display release information using command-line.

Ubuntu and Debian release information is provided by the distro-info package.

$ apt search  distro-info-*   
Sorting... Done
Full Text Search... Done
devscripts/jammy 2.22.1ubuntu1 amd64
  scripts to make the life of a Debian Package maintainer easier

distro-info/jammy,now 1.1build1 amd64 [installed,automatic]
  provides information about the distributions' releases

distro-info-data/jammy-updates,jammy-updates,now 0.52ubuntu0.2 all [installed,automatic]
  information about the distributions' releases (data files)

libdistro-info-perl/jammy,jammy 1.1build1 all
  information about distributions' releases (Perl module)

python3-distro-info/jammy,jammy,now 1.1build1 all [installed,automatic]
  information about distributions' releases (Python 3 module)

Use distro-info or ubuntu-distro-info to access Ubuntu release data or debian-distro-info to query Debian related information.

Debian

Display help information.

$ debian-distro-info --help
Usage: debian-distro-info [options]

Options:
  -h  --help             show this help message and exit
      --date=DATE        date for calculating the version (default: today)
      --series=SERIES    series to calculate the version for
  -y[MILESTONE]          additionally, display days until milestone
      --days=[MILESTONE] (created, release, eol, eol-lts, eol-elts)
      --alias=DIST       print the alias (oldstable, stable, testing, unstable)
                         relative to the given distribution codename
  -a  --all              list all known versions
  -d  --devel            latest development version
  -t  --testing          current testing version
  -s  --stable           latest stable version
  -o  --oldstable        latest oldstable version
      --supported        list of all supported versions (including development)
  -l  --lts              list of all LTS supported versions
  -e  --elts             list of all Extended LTS supported versions
      --unsupported      list of all unsupported stable versions
  -c  --codename         print the codename (default)
  -f  --fullname         print the full name
  -r  --release          print the release version

See debian-distro-info(1) for more info.

List every codename.

$ debian-distro-info --all 
buzz
rex
bo
hamm
slink
potato
woody
sarge
etch
lenny
squeeze
wheezy
jessie
stretch
buster
bullseye
bookworm
trixie
sid
experimental

Lest every full distribution name.

$ debian-distro-info --all --fullname
Debian 1.1 "Buzz"
Debian 1.2 "Rex"
Debian 1.3 "Bo"
Debian 2.0 "Hamm"
Debian 2.1 "Slink"
Debian 2.2 "Potato"
Debian 3.0 "Woody"
Debian 3.1 "Sarge"
Debian 4.0 "Etch"
Debian 5.0 "Lenny"
Debian 6.0 "Squeeze"
Debian 7 "Wheezy"
Debian 8 "Jessie"
Debian 9 "Stretch"
Debian 10 "Buster"
Debian 11 "Bullseye"
Debian 12 "Bookworm"
Debian 13 "Trixie"
Debian  "Sid"
Debian  "Experimental"

Display latest development codename.

$ debian-distro-info --devel
sid

Display current testing release version.

$ debian-distro-info --testing --release
12

Display latest stable distribution.

$ debian-distro-info --stable --fullname
Debian 11 "Bullseye"

Display oldstable codename.

$ debian-distro-info --oldstable
buster

List suppored distributions.

$ debian-distro-info --supported --fullname
Debian 11 "Bullseye"
Debian 12 "Bookworm"
Debian  "Sid"
Debian  "Experimental"

List unspported distributions.

$ debian-distro-info --unsupported --fullname
Debian 1.1 "Buzz"
Debian 1.2 "Rex"
Debian 1.3 "Bo"
Debian 2.0 "Hamm"
Debian 2.1 "Slink"
Debian 2.2 "Potato"
Debian 3.0 "Woody"
Debian 3.1 "Sarge"
Debian 4.0 "Etch"
Debian 5.0 "Lenny"
Debian 6.0 "Squeeze"
Debian 7 "Wheezy"
Debian 8 "Jessie"
Debian 9 "Stretch"
Debian 10 "Buster"

Display LTS supported codenames.

$ debian-distro-info --lts      
buster

Display Extended LTS supported codenames.

$ debian-distro-info --elts
stretch

Display distibution name that was stable at specific point of time.

$ debian-distro-info --stable --date 2000-01-01 --fullname
Debian 2.1 "Slink"

Display release for specific series.

$ debian-distro-info --series woody --release
3.0

Display days till end of life for stable distribution.

$ debian-distro-info --days=eol --stable  
542

Display data source.

$ cat /usr/share/distro-info/debian.csv 
version,codename,series,created,release,eol,eol-lts,eol-elts
1.1,Buzz,buzz,1993-08-16,1996-06-17,1997-06-05
1.2,Rex,rex,1996-06-17,1996-12-12,1998-06-05
1.3,Bo,bo,1996-12-12,1997-06-05,1999-03-09
2.0,Hamm,hamm,1997-06-05,1998-07-24,2000-03-09
2.1,Slink,slink,1998-07-24,1999-03-09,2000-10-30
2.2,Potato,potato,1999-03-09,2000-08-15,2003-07-30
3.0,Woody,woody,2000-08-15,2002-07-19,2006-06-30
3.1,Sarge,sarge,2002-07-19,2005-06-06,2008-03-30
4.0,Etch,etch,2005-06-06,2007-04-08,2010-02-15
5.0,Lenny,lenny,2007-04-08,2009-02-14,2012-02-06
6.0,Squeeze,squeeze,2009-02-14,2011-02-06,2014-05-31,2016-02-29
7,Wheezy,wheezy,2011-02-06,2013-05-04,2016-04-26,2018-05-31,2020-06-30
8,Jessie,jessie,2013-05-04,2015-04-25,2018-06-17,2020-06-30,2022-06-30
9,Stretch,stretch,2015-04-25,2017-06-17,2020-07-06,2022-06-30,2024-06-30
10,Buster,buster,2017-06-17,2019-07-06,2022-08-14,2024-06-30,2026-06-30
11,Bullseye,bullseye,2019-07-06,2021-08-14,2024-08-14
12,Bookworm,bookworm,2021-08-14
13,Trixie,trixie,2023-08-01
,Sid,sid,1993-08-16
,Experimental,experimental,1993-08-16

Ubuntu

Display help information.

$ ubuntu-distro-info --help
Usage: ubuntu-distro-info [options]

Options:
  -h  --help             show this help message and exit
      --date=DATE        date for calculating the version (default: today)
      --series=SERIES    series to calculate the version for
  -y[MILESTONE]          additionally, display days until milestone
      --days=[MILESTONE] (created, release, eol, eol-server, eol-esm)
  -a  --all              list all known versions
  -d  --devel            latest development version
  -s  --stable           latest stable version
      --lts              latest long term support (LTS) version
      --supported        list of all supported versions (including development)
      --supported-esm    list of all Ubuntu Advantage supported stable versions
      --unsupported      list of all unsupported stable versions
  -c  --codename         print the codename (default)
  -f  --fullname         print the full name
  -r  --release          print the release version

See ubuntu-distro-info(1) for more info.

Display all distribution names.

$ ubuntu-distro-info --all --fullname
Ubuntu 4.10 "Warty Warthog"
Ubuntu 5.04 "Hoary Hedgehog"
Ubuntu 5.10 "Breezy Badger"
Ubuntu 6.06 LTS "Dapper Drake"
Ubuntu 6.10 "Edgy Eft"
Ubuntu 7.04 "Feisty Fawn"
Ubuntu 7.10 "Gutsy Gibbon"
Ubuntu 8.04 LTS "Hardy Heron"
Ubuntu 8.10 "Intrepid Ibex"
Ubuntu 9.04 "Jaunty Jackalope"
Ubuntu 9.10 "Karmic Koala"
Ubuntu 10.04 LTS "Lucid Lynx"
Ubuntu 10.10 "Maverick Meerkat"
Ubuntu 11.04 "Natty Narwhal"
Ubuntu 11.10 "Oneiric Ocelot"
Ubuntu 12.04 LTS "Precise Pangolin"
Ubuntu 12.10 "Quantal Quetzal"
Ubuntu 13.04 "Raring Ringtail"
Ubuntu 13.10 "Saucy Salamander"
Ubuntu 14.04 LTS "Trusty Tahr"
Ubuntu 14.10 "Utopic Unicorn"
Ubuntu 15.04 "Vivid Vervet"
Ubuntu 15.10 "Wily Werewolf"
Ubuntu 16.04 LTS "Xenial Xerus"
Ubuntu 16.10 "Yakkety Yak"
Ubuntu 17.04 "Zesty Zapus"
Ubuntu 17.10 "Artful Aardvark"
Ubuntu 18.04 LTS "Bionic Beaver"
Ubuntu 18.10 "Cosmic Cuttlefish"
Ubuntu 19.04 "Disco Dingo"
Ubuntu 19.10 "Eoan Ermine"
Ubuntu 20.04 LTS "Focal Fossa"
Ubuntu 20.10 "Groovy Gorilla"
Ubuntu 21.04 "Hirsute Hippo"
Ubuntu 21.10 "Impish Indri"
Ubuntu 22.04 LTS "Jammy Jellyfish"
Ubuntu 22.10 "Kinetic Kudu"
Ubuntu 23.04 "Lunar Lobster"

Display development distribution.

$ ubuntu-distro-info --devel --fullname
Ubuntu 23.04 "Lunar Lobster"

Display stable distribution.

$ ubuntu-distro-info --stable --fullname
Ubuntu 22.10 "Kinetic Kudu"

Display LTS distribution.

$ ubuntu-distro-info --lts --fullname
Ubuntu 22.04 LTS "Jammy Jellyfish"

List supported distributions.

$ ubuntu-distro-info --supported --fullname
Ubuntu 18.04 LTS "Bionic Beaver"
Ubuntu 20.04 LTS "Focal Fossa"
Ubuntu 22.04 LTS "Jammy Jellyfish"
Ubuntu 22.10 "Kinetic Kudu"
Ubuntu 23.04 "Lunar Lobster"

List Ubuntu Advantage supported stable distribution names.

$ ubuntu-distro-info --supported-esm --fullname
Ubuntu 14.04 LTS "Trusty Tahr"
Ubuntu 16.04 LTS "Xenial Xerus"
Ubuntu 18.04 LTS "Bionic Beaver"
Ubuntu 20.04 LTS "Focal Fossa"
Ubuntu 22.04 LTS "Jammy Jellyfish"

List unsupported release numbers.

$ ubuntu-distro-info --unsupported --release
4.10
5.04
5.10
6.06 LTS
6.10
7.04
7.10
8.04 LTS
8.10
9.04
9.10
10.04 LTS
10.10
11.04
11.10
12.04 LTS
12.10
13.04
13.10
14.04 LTS
14.10
15.04
15.10
16.04 LTS
16.10
17.04
17.10
18.10
19.04
19.10
20.10
21.04
21.10

Get the number of days till end of life for LTS distribution.

$ ubuntu-distro-info --lts --days=eol
1521

Get the number of days till the end of life for LTS distribution using Ubuntu Advantage.

$ ubuntu-distro-info --lts --days=eol-esm
3348

Display data source.

$ cat /usr/share/distro-info/ubuntu.csv 
version,codename,series,created,release,eol,eol-server,eol-esm
4.10,Warty Warthog,warty,2004-03-05,2004-10-20,2006-04-30
5.04,Hoary Hedgehog,hoary,2004-10-20,2005-04-08,2006-10-31
5.10,Breezy Badger,breezy,2005-04-08,2005-10-12,2007-04-13
6.06 LTS,Dapper Drake,dapper,2005-10-12,2006-06-01,2009-07-14,2011-06-01
6.10,Edgy Eft,edgy,2006-06-01,2006-10-26,2008-04-26
7.04,Feisty Fawn,feisty,2006-10-26,2007-04-19,2008-10-19
7.10,Gutsy Gibbon,gutsy,2007-04-19,2007-10-18,2009-04-18
8.04 LTS,Hardy Heron,hardy,2007-10-18,2008-04-24,2011-05-12,2013-05-09
8.10,Intrepid Ibex,intrepid,2008-04-24,2008-10-30,2010-04-30
9.04,Jaunty Jackalope,jaunty,2008-10-30,2009-04-23,2010-10-23
9.10,Karmic Koala,karmic,2009-04-23,2009-10-29,2011-04-30
10.04 LTS,Lucid Lynx,lucid,2009-10-29,2010-04-29,2013-05-09,2015-04-30
10.10,Maverick Meerkat,maverick,2010-04-29,2010-10-10,2012-04-10
11.04,Natty Narwhal,natty,2010-10-10,2011-04-28,2012-10-28
11.10,Oneiric Ocelot,oneiric,2011-04-28,2011-10-13,2013-05-09
12.04 LTS,Precise Pangolin,precise,2011-10-13,2012-04-26,2017-04-28,2017-04-28,2019-04-28
12.10,Quantal Quetzal,quantal,2012-04-26,2012-10-18,2014-05-16
13.04,Raring Ringtail,raring,2012-10-18,2013-04-25,2014-01-27
13.10,Saucy Salamander,saucy,2013-04-25,2013-10-17,2014-07-17
14.04 LTS,Trusty Tahr,trusty,2013-10-17,2014-04-17,2019-04-25,2019-04-25,2024-04-25
14.10,Utopic Unicorn,utopic,2014-04-17,2014-10-23,2015-07-23
15.04,Vivid Vervet,vivid,2014-10-23,2015-04-23,2016-02-04
15.10,Wily Werewolf,wily,2015-04-23,2015-10-22,2016-07-28
16.04 LTS,Xenial Xerus,xenial,2015-10-22,2016-04-21,2021-04-21,2021-04-21,2026-04-23
16.10,Yakkety Yak,yakkety,2016-04-21,2016-10-13,2017-07-20
17.04,Zesty Zapus,zesty,2016-10-13,2017-04-13,2018-01-13
17.10,Artful Aardvark,artful,2017-04-13,2017-10-19,2018-07-19
18.04 LTS,Bionic Beaver,bionic,2017-10-19,2018-04-26,2023-04-26,2023-04-26,2028-04-26
18.10,Cosmic Cuttlefish,cosmic,2018-04-26,2018-10-18,2019-07-18
19.04,Disco Dingo,disco,2018-10-18,2019-04-18,2020-01-23
19.10,Eoan Ermine,eoan,2019-04-18,2019-10-17,2020-07-17
20.04 LTS,Focal Fossa,focal,2019-10-17,2020-04-23,2025-04-23,2025-04-23,2030-04-23
20.10,Groovy Gorilla,groovy,2020-04-23,2020-10-22,2021-07-22
21.04,Hirsute Hippo,hirsute,2020-10-22,2021-04-22,2022-01-20
21.10,Impish Indri,impish,2021-04-22,2021-10-14,2022-07-14
22.04 LTS,Jammy Jellyfish,jammy,2021-10-14,2022-04-21,2027-04-21,2027-04-21,2032-04-21
22.10,Kinetic Kudu,kinetic,2022-04-21,2022-10-20,2023-07-20
23.04,Lunar Lobster,lunar,2022-10-20,2023-04-20,2024-01-25

Additional information

Use launchpad to inspect Ubuntu package and salsa to locate Debian package.

ko-fi