You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Anthony Perkins 7e63bbf50b Update README.md 5 months ago
LICENSE Initial version, parses local releases.json file, no arguments 3 years ago
LICENSE.html Initial version, parses local releases.json file, no arguments 3 years ago
README.md Update README.md 5 months ago
main.go Reformat and fix missing : in release.Source struct 5 months ago

README.md

Latest Linux kernel version

This program reads the latest kernel version from kernel.org and prints the version to stdout.

The URL to download each version can be printed instead, to automate downloading of the most recent stable or mainline builds.

The following options are supported:

-s

    Prints the version number of the most recent stable
    release.  This is the default if no other options are
    specified.

-u

    Prints the download URL of the most recent stable release.
    
-m

    Prints the download URL of the most recent mainline release.
    
-n

    Prints the URL of the Git web interface of the most recent
    linux-next release.

If more than one option is specified, output is printed in the following order:

  • latest 'stable' version number;
  • latest 'stable' URL;
  • latest 'mainline' URL;
  • latest 'linux-next' GitWeb URL.

The output of this can be passed to other applications such as curl or wget.