DEV Community

Get always the last version of the github/gitlab software.

Do you use a of software from github ? that not have a packaging system ?

then lastversion its for you!

lastversion apache/incubator-pagespeed-ngx 

lastversion download apache/incubator-pagespeed-ngx 
#> downloaded incubator-pagespeed-ngx-v1.13.35.2-stable.tar.gz

lastversion download apache/incubator-pagespeed-ngx -o pagespeed.tar.gz 
#> downloads with chosen filename

#> 3.0

lastversion format "mysqld  Ver 5.6.51-91.0 for Linux"
#> 5.6.51
Enter fullscreen mode Exit fullscreen mode

If you follow the awesome cli seria I have wrotten with this software you can get the last version of all

GitHub logo dvershinin / lastversion

Find the latest release version of an arbitrary project


Python package PyPI version Documentation Status Codacy Badge Codacy Badge

Using lastversion in terminal

English | ็ฎ€ไฝ“ไธญๆ–‡

A tiny command-line utility that helps to answer a simple question:

What is the latest stable version for a project?

... and, optionally, download/install it.

lastversion allows finding well-formatted, the latest release version of a project from these supported locations:

  • GitHub
  • GitLab
  • BitBucket
  • PyPI
  • Mercurial
  • SourceForge
  • Wikipedia
  • Arbitrary software sites which publish releases in RSS/ATOM feeds

Why you need lastversion

In general, quite many project authors complicate finding the latest version by:

  • Creating a formal release that is clearly a Release Candidate (rc in tag), but forgetting to mark it as a pre-release

  • Putting extraneous text in release tag e.g. release-1.2.3 or name-1.2.3-2019 anything fancy like that

  • Putting or not putting the v prefix inside release tags. Today yes, tomorrow not. I'm not consistent about it myself :)

  • Switching from one version format to another, e.g. v20150121 to v2.0.1

There is no consistency in humanโ€ฆ

Top comments (0)