2020-01-16 19:19:45 +00:00
|
|
|
apk-version(8)
|
|
|
|
|
|
|
|
# NAME
|
|
|
|
|
|
|
|
apk version - compare package versions
|
|
|
|
|
|
|
|
# SYNOPSIS
|
|
|
|
|
|
|
|
*apk version* [<_options_>...] [_packages_...]
|
|
|
|
|
|
|
|
*apk version* -c _versions_...
|
|
|
|
|
2020-05-04 12:24:58 +00:00
|
|
|
*apk version* -t _version1_ _version2_
|
2020-01-16 19:19:45 +00:00
|
|
|
|
|
|
|
*apk version* -I
|
|
|
|
|
|
|
|
# DESCRIPTION
|
|
|
|
|
|
|
|
*apk version* compares the versions of installed packages against package
|
2020-05-04 12:24:58 +00:00
|
|
|
versions available from repositories (see *apk-repositories*(5)). It can also
|
|
|
|
be used to validate and compare version strings.
|
|
|
|
|
|
|
|
In default mode, if no packages are specified, all installed packages are
|
|
|
|
considered. Otherwise, the comparison is limited to the explicitly listed
|
|
|
|
packages. A summary is printed on stdout, with the difference between package
|
|
|
|
versions being represented as *>*, *=*, or *<*.
|
2020-01-16 19:19:45 +00:00
|
|
|
|
2021-06-18 21:10:27 +00:00
|
|
|
Options *-c*, *-I*, and *-t* are mutually exclusive.
|
2020-01-16 19:19:45 +00:00
|
|
|
|
|
|
|
# OPTIONS
|
|
|
|
|
|
|
|
These options only apply when checking installed package versions against
|
|
|
|
packages available from the repositories (when neither *-c*, *-t*, nor *-I* are
|
|
|
|
specified).
|
|
|
|
|
2021-06-18 21:10:27 +00:00
|
|
|
*-a, --all*
|
2020-01-16 19:19:45 +00:00
|
|
|
Consider packages from all repository tags.
|
|
|
|
|
2021-06-18 21:10:27 +00:00
|
|
|
*-c, --check* _versions_...
|
|
|
|
Check versions for validity. If a given version is invalid, it is
|
|
|
|
printed. Exits with status code zero if all versions are valid, and
|
|
|
|
non-zero otherwise.
|
|
|
|
|
|
|
|
*-I, --indexes*
|
|
|
|
Print the version and description for each repository's index. See
|
|
|
|
*apk-repositories*(5) for more information.
|
|
|
|
|
|
|
|
*-l, --limit* _operand_
|
2020-05-04 12:24:58 +00:00
|
|
|
Limit to packages with output matching given _operand_. The _operand_
|
|
|
|
can be specified as any combination of *>*, *=*, and *<*.
|
2021-06-18 21:10:27 +00:00
|
|
|
|
|
|
|
*-t, --test* _version1_ _version2_
|
|
|
|
Compare two version strings. Does not consult the database. Prints one
|
|
|
|
of *>*, *=*, or *<*, if _version1_ is, respectively, greater than,
|
|
|
|
equal to, or lesser than _version2_.
|