[Samba] Programmatically Retrieve Current Stable Version

Andrew Bartlett abartlet at samba.org
Mon Aug 13 00:39:31 UTC 2018

On Fri, 2018-08-10 at 20:58 -0400, John Clendenen via samba wrote:
> I am writing an update script for Samba (compiled from source) and I am
> wondering how best to programmatically get the latest release version
> number.
> I know that https://download.samba.org/pub/samba/samba-latest.tar.gz exists,
> but I would like to get the version number to compare to smbd -V, so that
> it can quietly ignore if Samba is already up to date.
> My currently solution is to incrementally prod at
> https://download.samba.org/pub/samba/stable/samba-4.X.X.tar.gz, but that’s
> obviously not ideal.
> Please let me know if there is a better, accepted way to about this.
> Thank you for all your hard work. I am looking forward to the 4.9 release.

Debian has a watch file for this purpose:


It is much the same as what you do however.

There are also tags in the samba git repo, eg samba-4.8.1

Andrew Bartlett

Andrew Bartlett
Authentication Developer, Samba Team         https://samba.org
Samba Development and Support, Catalyst IT   

More information about the samba mailing list