Automic VaultAutomic Vault

brew

使用 Homebrew, Nix, zypper 安装 libversion

查看 libversion 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install libversion

local Homebrew formula metadata

Linux

Nix已验证 · 92%
nix profile install nixpkgs#libversion

nixpkgs package indexes · pkgs/by-name/li/libversion/package.nix · 来源: api.github.com

openSUSE zypper已验证 · 92%
sudo zypper install libversion

openSUSE Tumbleweed package metadata · libversion · 来源: download.opensuse.org

概览

软件包摘要

Advanced version string comparison library

命令和别名

  • version_compare
  • version_sort

历史

项目历史与用法

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.

时间线

  • 1.0.0: First tagged major release line in the public repository.
  • 2.0.0: Later tagged major release line in the public repository.
  • 3.0.0: Later tagged major release line in the public repository.

Related projects

  • Repology uses libversion for software-version comparison across repositories.
  • py-libversion, libversion-rs, golibversion, ruby-libversion, and other bindings or compatible implementations extend the same comparison model.

安全态势

风险级别:绿色

library-like package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • library-like package without higher-risk signals

信号

  • metadata:library-like

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
version_comparecli全局可执行文件
version_sortcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-08
管理器版本3.0.4
管理器更新时间
本地数据OK
上游当前
检测到的最新版本3.0.4

https://github.com/repology/libversion

  • 信息No package-manager update timestamp was available.低 置信度

安装元数据

软件包元数据

软件包键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 DatabaseHomebrew formula API
Taphomebrew/core
Full Namelibversion
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

libversion

nix profile install nixpkgs#libversion
  • normalized package name match
  • 匹配方式:Libversion
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/li/libversion/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
zypper95%

libversion 3.0.4-1.3

Version string comparison library

https://github.com/repology/libversion

sudo zypper install libversion
  • License: MIT
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: libversion
  • 4 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Libversion
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: libversion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

libversion-devel 3.0.4-1.3

Development files for libversion

https://github.com/repology/libversion

sudo zypper install libversion-devel
  • License: MIT
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: libversion
  • 2 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式:Libversion
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: libversion-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

libversion1 3.0.4-1.3

Version string comparison library

https://github.com/repology/libversion

sudo zypper install libversion1
  • License: MIT
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: libversion
  • 2 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Libversion
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: libversion1 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment