apk-version(8)

πŸ’– NAME πŸ’–

okay so bestie, welcome to apk-version(8) from the System Manager's Manual β€” this is the manual page for apk version, aka the tool that compares package versions. That's the whole vibe. πŸ¦‹

✨ SYNOPSIS ✨

apk version [<options>...] [packages...]

apk version -c versions...

apk version -t version1 version2

apk version -I

🌸 DESCRIPTION 🌸

So like, apk version compares the versions of installed packages against package versions available from repositories (peep apk-repositories(5)). It can also be used to validate and compare version strings. Iconic multitasking, honestly. πŸ’…

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 <. Periodt.

🚨 bestie alert: options -c, -I, and -t are mutually exclusive. Pick one, not all three, mmkay?

πŸŽ€ OPTIONS πŸŽ€

These options only apply when checking installed package versions against packages available from the repositories (when neither -c, -t, nor -I are specified).

  • --all, -a β€” consider packages from all repository tags. all the tags, no cap ✨
  • --check, -c β€” 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. validity vibe check πŸ’€
  • --indexes, -I β€” print the version and description for each repository's index. See apk-repositories(5) for more information. πŸ—‚οΈ
  • --limit, -l operand β€” limit to packages with output matching given operand. The operand can be specified as any combination of >, =, and <. mix and match, bestie 🎚️
  • --test, -t β€” 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. pure string showdown πŸ”₯

xoxo, bestie β€” this was apk-version(8) from the System Manager's Manual, dated 2026-11-02 πŸ’–πŸ«Ά

πŸ“¦ where this page comes from