# Installer libversion avec Homebrew, Nix, zypper

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de libversion pour les workflows d'agents IA.

## installation

```sh
sudo av install brew:libversion
```

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install libversion
```

  Preuve: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#libversion
```

  Preuve: nixpkgs package indexes: pkgs/by-name/li/libversion/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- zypper (92%):

```sh
sudo zypper install libversion
```

  Preuve: openSUSE Tumbleweed package metadata: libversion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Faits du paquet

- **Clé du paquet:** brew:libversion
- **Gestionnaire de paquets:** Homebrew
- **Page du gestionnaire de paquets:** <https://formulae.brew.sh/formula/libversion>
- **Version:** 3.0.4
- **Résumé source:** Advanced version string comparison library
- **Page d'accueil:** <https://github.com/repology/libversion>
- **Dépôt:** <https://github.com/repology/libversion>
- **Docs amont:** <https://github.com/repology/libversion>
- **Licence:** MIT
- **Archive source:** <https://github.com/repology/libversion/archive/refs/tags/3.0.4.tar.gz>
- **Généré:** 2026-07-08T07:18:31+00:00

## exécutables

- version_compare (cli)
- version_sort (cli)
- version_compare (alias)
- version_sort (alias)

## Dépendances de compilation

- cmake

## Comportement d'installation

- hook post-installation: non défini
- Bouteille: disponible sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Version et fraîcheur

- page générée: 2026-07-08
- version du gestionnaire: 3.0.4
- données locales: OK
- dépôt amont: https://github.com/repology/libversion
- dernière version détectée: 3.0.4 (à jour)
- info: No package-manager update timestamp was available.
## Historique du projet et usages

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.

### Historique du projet

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.

### Historique d'adoption

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.

### Modes d'utilisation

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.

### Pourquoi les passionnés de paquets s'y intéressent

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.

### Chronologie

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

### Sources

- <https://github.com/repology/libversion>
- <https://github.com/repology/repology-updater>
- <https://raw.githubusercontent.com/repology/libversion/master/README.md>
- <https://raw.githubusercontent.com/repology/repology-updater/master/README.md>


## Notes de sécurité

library-like package without higher-risk signals.

- **Risque Geiger:** vert / faible
- library-like package without higher-risk signals

## Détails de la base source

- **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:** stable

## Autres enregistrements de gestionnaires de paquets

- Nix - libversion: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libversion/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- zypper - libversion - 3.0.4-1.3: normalized package name match | openSUSE Tumbleweed package metadata: libversion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Version string comparison library | https://github.com/repology/libversion
- zypper - libversion-devel - 3.0.4-1.3: normalized package name match | openSUSE Tumbleweed package metadata: libversion-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Development files for libversion | https://github.com/repology/libversion
- zypper - libversion1 - 3.0.4-1.3: normalized package name match | openSUSE Tumbleweed package metadata: libversion1 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Version string comparison library | https://github.com/repology/libversion


## Liens liés

- [Source-control packages](https://www.automicvault.com/fr/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/fr/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/fr/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/fr/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [cmake](https://www.automicvault.com/fr/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [dunamai](https://www.automicvault.com/fr/pkg/brew/dunamai/) - Shares av.db curated category or tags: cli, developer-tools, versioning.
- [semtag](https://www.automicvault.com/fr/pkg/brew/semtag/) - Shares av.db curated category or tags: cli, developer-tools, versioning.
- [semver](https://www.automicvault.com/fr/pkg/brew/semver/) - Shares av.db curated category or tags: cli, developer-tools, versioning.
- [svu](https://www.automicvault.com/fr/pkg/brew/svu/) - Shares av.db curated category or tags: cli, developer-tools, versioning.
- [ada-url](https://www.automicvault.com/fr/pkg/brew/ada-url/) - Shares av.db curated category or tags: cli, developer-tools, library.
- [ancient](https://www.automicvault.com/fr/pkg/brew/ancient/) - Shares av.db curated category or tags: cli, developer-tools, library.
- [apr](https://www.automicvault.com/fr/pkg/brew/apr/) - Shares av.db curated category or tags: cli, developer-tools, library.
- [apr-util](https://www.automicvault.com/fr/pkg/brew/apr-util/) - Shares av.db curated category or tags: cli, developer-tools, library.

## Combined YAML source

View the package source record on GitHub. [combined/libversion.yml](https://github.com/automic-vault/db/blob/main/combined/libversion.yml)


## Sources

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