2 .\" Copyright 1998 Bruce A. Mah
4 .\" All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
15 .\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY EXPRESS OR
16 .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17 .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18 .\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT,
19 .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20 .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 .Nd summarize installed versions of packages
44 .Fl t Ar version1 version2
46 .Fl T Ar pkgname pattern
50 command is used to produce a report of non-base software packages
55 Each package's version number is checked against one of two sources to
56 see if that package may require updating.
57 If the package contains
58 information about its origin in the
60 ports tree, and a version number can be determined from the port's
62 then the version number from the
64 will be used to determine whether the installed package is up-to-date
67 If no origin for a package can be found, or if the port's
71 will search for the package in the ports collection index file
73 .Pa /usr/ports/INDEX-6 ) .
74 Any matching version number(s) there will be used to determine whether
75 the installed package is up-to-date or requires updating.
77 Generally, using the version number from a port's
79 will provide a more accurate result, since, unlike the index file, it
80 provides an unambiguous current version number, even when multiple
81 versions of a port exist in the ports collection.
82 Moreover, the ports collection index file is only updated at
83 intervals, meaning that it may not completely reflect the version
84 numbers of the software contained in the ports collection.
86 Each package name is printed, along with a one-character status flag:
87 .Bl -tag -width indent
89 The installed version of the package is current.
91 The installed version of the package is older than the current version.
93 The installed version of the package is newer than the current version.
94 This situation can arise with an out-of-date index file, or when
97 The installed package does not appear in the index.
98 This could be due to an out of date index or a package taken from a PR
99 that has not yet been committed.
101 There are multiple versions of a particular software package
102 listed in the index file.
105 ports collection are the Tcl toolkit or the
109 The installed package exists in the index but for some reason,
111 was unable to compare the version number of the installed package
112 with the corresponding entry in the index.
117 utility supports several command-line arguments:
118 .Bl -tag -width indent
122 Limit the output to those packages whose status flag matches the
125 More than one character can be specified in
127 Note that because some of the status flag characters are also special
128 to the shell, it is best to quote
132 Limit the output to those packages whose status flag does not match
134 You may specify more than one character to match in
136 Note that because some of the status flag characters are also special
137 to the shell, it is best to quote
142 Quiet output precludes printing the
148 This is useful when used as the input to
151 Limit the output to those packages whose names match a given
156 as a extended regular expression.
158 Test a pair of version number strings and exit.
159 The output consists of one of the single characters
163 (right-hand number greater), or
165 (left-hand number greater) on standard output.
166 This flag is mostly useful for scripts or for testing.
172 and set the exit code accordingly.
174 can also be used in `filter mode':
175 When one of the arguments is `-', standard input is used, and lines
176 with matching package names/patterns are echoed to standard output.
178 Enable verbose output.
179 Verbose output includes some English-text
180 interpretations of the version number comparisons, as well as the
181 version numbers compared for each package.
182 Non-verbose output is
183 probably easier for programs or scripts to parse.
185 Specify the index to be used as a basis of comparison.
187 be specified as a filename (in the local file system) or a URL.
189 URL understandable by
194 file is specified on the command line,
195 .Pa /usr/ports/INDEX-6
199 .Bl -tag -width /usr/ports/INDEX-6 -compact
200 .It Pa /usr/ports/INDEX-6
204 The following is a typical invocation of the
206 command, which checks the installed packages against the local ports
211 The command below generates a report against
212 the version numbers in the on-line ports collection:
214 .Dl % pkg_version http://www.FreeBSD.org/ports/INDEX-6
216 The following command compares two package version strings:
218 .Dl % pkg_version -t 1.5 1.5.1
222 option has been deprecated and is no longer supported.
233 utility was written by
234 .An Jeremy D. Lea Aq reg@FreeBSD.org ,
235 partially based on a Perl script written by
236 .An Bruce A. Mah Aq bmah@FreeBSD.org .
238 .An Nik Clayton Aq nik@FreeBSD.org ,
239 .An Dominic Mitchell Aq dom@palmerharvey.co.uk ,
240 .An Mark Ovens Aq marko@FreeBSD.org ,
241 .An Doug Barton Aq DougB@gorean.org ,
242 .An Akinori MUSHA Aq knu@FreeBSD.org ,
243 .An Oliver Eikemeier Aq eik@FreeBSD.org