Debian package version

Brandon Tomlinson brandon.tomlinson at RACKSPACE.COM
Fri Nov 6 13:59:19 UTC 2015


Additionally see: https://debian-handbook.info/browse/stable/sect.manipulating-packages-with-dpkg.html

Ctrl-f to "GOING FURTHER Comparison of versions”, it has a nice tutorial on the tool.

-Brandon, out!



On 11/6/15, 4:11 AM, "ubuntu-users-bounces at lists.ubuntu.com on behalf of Oliver Grawert" <ubuntu-users-bounces at lists.ubuntu.com on behalf of ogra at ubuntu.com> wrote:

>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
>
>
>-- 
>ubuntu-users mailing list
>ubuntu-users at lists.ubuntu.com
>Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users


More information about the ubuntu-users mailing list