Wednesday, October 12, 2016

Get the next release code name via command line



lsb_release -c gives me the current release, how from the command line can I determine the next release?




i.e. if lsb_release -c gives me 'utopic', how can I determine the next release is 'vivid' from the command line?



Update Manager parses meta-release* files from http://changelogs.ubuntu.com to determine if a new release is available for upgrade. We can use http://changelogs.ubuntu.com/meta-release-development for this purpose:



wget -qO - http://changelogs.ubuntu.com/meta-release-development |
awk '/^Dist:/ {print $2}' |
awk "p{print; exit} /$(lsb_release -sc)/{p=1}"


This should print nothing if you are on the latest release and the next release name hasn't be published yet.



No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...