Yet Another Way to List the Latest Releases of YugabyteDB from the Command Line

As mentioned in a previous YugabyteDB Tip, we can view the recent releases of YugabyteDB via the web, an RSS feed, or the command line.

Unfortunately, the methods provided are limited as they rely on the documentation being up to date and do not include patch releases.

Below is a command line option that lists all releases, including the latest and patch versions, available in YugabyteDB’s GitHub repository:
				
					[root@cloud-server-0 ~]# curl -s https://api.github.com/repos/yugabyte/yugabyte-db/releases | jq -r '["Release", "Release Date"],["-----------", "------------"],(.[] | [.tag_name, (.published_at | split("T")[0])]) | @tsv' | column -t -s $'\t'
Release      Release Date
-----------  ------------
v2024.2.2.0  2025-02-28
v2024.1.5.0  2025-02-18
v2024.2.1.0  2025-01-30
v2.20.9.0    2025-01-28
v2024.1.4.0  2025-01-09
v2.25.0.0    2025-01-18
v2.20.8.1    2024-12-17
v2024.2.0.0  2024-12-09
v2.20.8.0    2024-12-02
v2.20.7.2    2024-11-22
v2024.1.3.1  2024-11-20
v2.23.1.0    2024-11-12
v2.20.7.1    2024-10-16
v2024.1.3.0  2024-10-08
v2.20.7.0    2024-09-30
v2.20.2.4    2024-09-13
v2.23.0.0    2024-09-13
v2024.1.2.0  2024-09-03
v2.20.6.0    2024-08-23
v2.18.9.0    2024-08-15
v2024.1.1.0  2024-07-31
v2.18.8.1    2024-07-18
v2.20.5.0    2024-07-11
v2.20.2.3    2024-09-13
v2.20.4.1    2024-06-21
v2.18.8.0    2024-06-21
v2.21.1.0    2024-06-13
v2024.1.0.0  2024-06-04
v2.20.4.0    2024-05-23
v2.21.0.1    2024-05-17
				
			

If you only want to view the latest 5 releases, you can add a limit to the Linux jq command:

				
					[root@cloud-server-0 ~]# curl -s https://api.github.com/repos/yugabyte/yugabyte-db/releases | jq -r '["Release", "Release Date"],["-----------", "------------"],(limit(5; .[]) | [.tag_name, (.published_at | split("T")[0])]) | @tsv' | column -t -s $'\t'
Release      Release Date
-----------  ------------
v2024.2.2.0  2025-02-28
v2024.1.5.0  2025-02-18
v2024.2.1.0  2025-01-30
v2.20.9.0    2025-01-28
v2024.1.4.0  2025-01-09
				
			

Have Fun!

Maple, our daughter's "puppy", is growing up fast! She’s even got the same white patch of fur on her chest that I’m getting on my head—except mine comes with a few more grey hairs!