Use ignoregroup rather than ignoregrp in the handle
[pacman-ng.git] / doc / vercmp.8.txt
blobf2fc530518055e3ff903a02e5e8cbb24994cac9d
1 /////
2 vim:set ts=4 sw=4 syntax=asciidoc noet:
3 /////
4 vercmp(8)
5 =========
7 Name
8 ----
9 vercmp - version comparsion utility
12 Synopsis
13 --------
14 'vercmp' <version1> <version2>
17 Description
18 -----------
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:
28   Alphanumeric:
29     1.0a < 1.0alpha < 1.0b < 1.0beta < 1.0p < 1.0pre < 1.0rc < 1.0
30   Numeric:
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`.
39 Options
40 -------
41 *-h, \--help*::
42         Display syntax for the given operation. If no operation was supplied
43         then the general syntax is shown.
45 Examples
46 --------
48   $ vercmp 1 2
49   -1
51   $ vercmp 2 1
52   1
54   $ vercmp 2.0-1 1.7-6
55   1
57   $ vercmp 2.0 2.0-13
58   0
60   $ vercmp 4.34 1:001
61   -1
63 Configuration
64 -------------
65 There is none.
67 See Also
68 --------
69 linkman:pacman[8], linkman:makepkg[8], linkman:libalpm[3]
71 include::footer.txt[]