macOS
brew install libversionlocal Homebrew formula metadata
brew
Advanced version string comparison library. Version 3.0.4 via Homebrew; verified from local package data.
install
brew install libversionlocal Homebrew formula metadata
nix profile install nixpkgs#libversionnixpkgs package indexes · pkgs/by-name/li/libversion/package.nix · source: api.github.com
sudo zypper install libversionopenSUSE Tumbleweed package metadata · libversion · source: download.opensuse.org
overview
Advanced version string comparison library
history
libversion is Repology's C library for comparing messy software version strings, including prerelease markers, suffixes, separators, and package-repository conventions that simple lexical comparison gets wrong.
The library was written by Dmitry Marakasov for the Repology ecosystem. Its README frames the core problem as comparing versions from different package repositories, where strings such as alpha, beta, rc, patch, post, and unusual separators need stable ordering rules.
libversion is used by Repology itself, and Repology's updater lists the Python libversion module, the C library, and a PostgreSQL libversion extension among its dependencies. That makes the library part of the machinery behind cross-distribution version tracking rather than a general end-user command.
The library exposes C comparison functions, installs pkg-config and CMake integration files, and includes command-line utilities such as version_compare and version_sort for package-maintainer scripts or quick checks.
Version ordering is one of the oldest package-manager traps. libversion is interesting because it treats packaging reality as the problem domain: upstreams encode prereleases, patches, and suffixes inconsistently, and repository comparison services need deterministic answers.
security posture
library-like package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
version_compare | cli | global executable | |
version_sort | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/repology/libversion
install metadata
| Package key | brew:libversion |
|---|---|
| Version | 3.0.4 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/libversion |
| Homepage | https://github.com/repology/libversion |
| Repository | https://github.com/repology/libversion |
| Upstream docs | https://github.com/repology/libversion |
| License | MIT |
| Source archive | https://github.com/repology/libversion/archive/refs/tags/3.0.4.tar.gz |
| Build dependencies | cmake |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | libversion |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
libversion
nix profile install nixpkgs#libversionlibversion 3.0.4-1.3
Version string comparison library
https://github.com/repology/libversion
sudo zypper install libversionlibversion-devel 3.0.4-1.3
Development files for libversion
https://github.com/repology/libversion
sudo zypper install libversion-devellibversion1 3.0.4-1.3
Version string comparison library
https://github.com/repology/libversion
sudo zypper install libversion1source trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.