2 vim:set ts=4 sw=4 syntax=asciidoc noet:
9 vercmp - version comparsion utility
14 'vercmp' <version1> <version2>
19 'vercmp' is used to determine the relationship between two given version
20 numbers. It outputs values as follows:
22 * < 0 : if ver1 < ver2
23 * = 0 : if ver1 == ver2
24 * > 0 : if ver1 > ver2
26 Version comparsion operates as follows:
29 1.0a < 1.0alpha < 1.0b < 1.0beta < 1.0p < 1.0pre < 1.0rc < 1.0
31 1 < 1.0 < 1.1 < 1.1.1 < 1.2 < 2.0 < 3.0.0
33 Additionally, version strings can have an 'epoch' value defined that will
34 overrule any version comparison (unless the epoch values are equal). This is
35 specified in an `epoch:version-rel` format. For example, `2:1.0-1` is always
36 greater than `1:3.6-1`.
42 Display syntax for the given operation. If no operation was supplied
43 then the general syntax is shown.
69 linkman:pacman[8], linkman:makepkg[8], linkman:libalpm[3]