
3 May
2015
3 May
'15
7:35 a.m.
In case you were not aware of it, pacman provides an executable named "vercmp" to compare versions. It also provides a vercmp manpage to explain how ALPM's version comparison function works.
$ vercmp 2.1_1 2.1.1_0 -1
I wasn't aware, thanks for the tip!
The underscore system seems to work as expected. I was afraid that it would trigger alphanumeric comparisons (e.g. 2.3_0 > 2.24_0) but it does not:
$ vercmp 2.r3_0 2.r24_0 -1
Good idea to think about and test this point. ++ Fab