Debian Codegraph @

man/linux-version.1

raw
1 .TH LINUX-VERSION 1 "30 March 2011"
2 .SH NAME
3 linux\-version \- operate on Linux kernel version strings
4 .SH SYNOPSIS
5 .HP
6 .BI linux\-version\ compare \ KERNEL\-VER\-1\ OP\ KERNEL\-VER\-2
7 .HP
8 .BR linux\-version\ sort \ [ \-\-reverse ]
9 .RI [ KERNEL\-VER\-1\ KERNEL\-VER\-2 \ ...]
10 .HP
11 .BR linux\-version\ list \ [ \-\-paths ]
12 .SH DESCRIPTION
13 \fBlinux\-version\fR operates on Linux kernel version strings as
14 reported by \fBuname \-r\fR and used in file and directory names.
15 These version strings do not follow the same rules as Debian package
16 version strings and should not be compared as such or as arbitrary
17 strings.
18 .TP
19 .BI compare \ KERNEL\-VER\-1\ OP\ KERNEL\-VER\-2
20 Compare version strings, where \fIOP\fP is a binary
21 operator. \fBlinux\-version\fP returns success (zero result) if the
22 specified condition is satisfied, and failure (nonzero result)
23 otherwise. The valid operators are: \fBlt le eq ne ge gt\fP
24 .TP
25 \fBsort\fR [\fB\-\-reverse\fR] [\fIKERNEL\-VER\-1 KERNEL\-VER\-2\fR ...]
26 Sort the given version strings and print them in order from lowest to
27 highest. If the \fB\-\-reverse\fR option is used, print them in order
28 from highest to lowest.
29 .RS
30 .PP
31 If no version strings are given as arguments, the version strings will
32 instead be read from standard input, one per line. They may be
33 suffixed by arbitrary text after a space, which will be included in
34 the output. This means that, for example:
35 .PP
36 .EX
37 linux\-version list \-\-paths | linux\-version sort \-\-reverse
38 .EE
39 .PP
40 will list the installed versions and corresponding paths in order
41 from highest to lowest version.
42 .RE
43 .TP
44 \fBlist\fR [\fB\-\-paths\fR]
45 List kernel versions installed in the customary location. If the
46 \fB\-\-paths\fR option, show the corresponding path for each version.
47 .SH AUTHOR
48 \fBlinux\-version\fR and this manual page were written by Ben
49 Hutchings as part of the Debian \fBlinux\-base\fR package.