Debian package version

Oliver Grawert ogra at ubuntu.com
Fri Nov 6 10:11:09 UTC 2015


hi,
Am Donnerstag, den 05.11.2015, 18:50 -0800 schrieb Sam Giraffe:

> Will I have to change my package versioning for apt-get to understand
> the package versions?
> 
to get proper versioning use the tool that manages the versioning for
checking:

ogra at anubis:~$ dpkg --compare-versions 1 gt 2 || echo false
false
ogra at anubis:~$ dpkg --compare-versions 2 gt 1 || echo false
ogra at anubis:~$

in your specific case the letter is the issue:

ogra at anubis:~$ dpkg --compare-versions 201510162108+0a8974b-HEAD gt
20151029T114141+259421f+HEAD || echo false
ogra at anubis:~$ dpkg --compare-versions 201510162 gt 20151029T || echo
false
ogra at anubis:~$ dpkg --compare-versions 20151016 gt 20151029 || echo
false
false

note also that . + ~ - have special meaning in dpkg package versions ...
http://www.fifi.org/doc/debian-policy/policy.html/ch-versions.html
has all the details ...

ciao
	oli





More information about the ubuntu-users mailing list