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