Is possible to get latest revision of snap package in short form ?
Something like snap info package
, but output only latest revision number.
Best Regards.
Is possible to get latest revision of snap package in short form ?
Something like snap info package
, but output only latest revision number.
Best Regards.
If you want just the version number for a given snap, then you can do this:
Using this for
vlc
(on my system) results in the following value:3.0.16
.How This works:
snap list
|
grep package
package
|
awk '{print $2}'
As wrote mook765, revision number is different from version number. But method used by matigo may be modified to get revision number:
From unknown reason this script works slow, you may use this: