macOS
brew install libversionlocal Homebrew formula metadata
安装
brew install libversionlocal Homebrew formula metadata
nix profile install nixpkgs#libversionnixpkgs package indexes · pkgs/by-name/li/libversion/package.nix · 来源: api.github.com
sudo zypper install libversionopenSUSE Tumbleweed package metadata · libversion · 来源: download.opensuse.org
概览
Advanced version string comparison library
历史
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.
安全态势
library-like package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
version_compare | cli | 全局可执行文件 | |
version_sort | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/repology/libversion
安装元数据
| 软件包键 | brew:libversion |
|---|---|
| 版本 | 3.0.4 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/libversion |
| 主页 | https://github.com/repology/libversion |
| 仓库 | https://github.com/repology/libversion |
| 上游文档 | https://github.com/repology/libversion |
| 许可证 | MIT |
| 源码归档 | https://github.com/repology/libversion/archive/refs/tags/3.0.4.tar.gz |
| 构建依赖 | cmake |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
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 libversion1来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.