# Installer libcap avec Homebrew, apk, dnf, Nix, pacman, zypper

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

## installation

```sh
sudo av install brew:libcap
```

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install libcap
```

  Preuve: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add libcap
```

  Preuve: Alpine Linux edge package indexes: libcap from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install libcap
```

  Preuve: Fedora Rawhide package metadata: libcap from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#libcap
```

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

- pacman (92%):

```sh
sudo pacman -S libcap
```

  Preuve: Arch Linux sync databases: libcap from https://geo.mirror.pkgbuild.com/core/os/x86_64/core.db.tar.gz

- zypper (92%):

```sh
sudo zypper install libcap-devel
```

  Preuve: openSUSE Tumbleweed package metadata: libcap-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## Faits du paquet

- **Clé du paquet:** brew:libcap
- **Gestionnaire de paquets:** Homebrew
- **Version:** 2.78
- **Résumé source:** User-space interfaces to POSIX 1003.1e capabilities
- **Page d'accueil:** <https://sites.google.com/site/fullycapable/>
- **Généré:** 2026-08-03T19:37:03+00:00

## exécutables

- capsh (alias)
- getcap (alias)
- getpcaps (alias)
- setcap (alias)

## Comportement d'installation

- Bouteille: non disponible

## Version et fraîcheur

- page générée: 2026-08-03
- version du gestionnaire: 2.78
## Historique du projet et usages

libcap is Andrew G. Morgan's user-space library and utility suite for Linux capabilities, including setcap, getcap, getpcaps, capsh, pam_cap, and related support libraries.

### Historique du projet

The upstream README describes libcap as a library for getting and setting POSIX.1e draft 15 capabilities, with native C/C++ and Go support. The Fully Capable site frames Linux capabilities as an alternative to the superuser model of privilege under Linux and notes that the Linux implementation is based on the defunct POSIX.1e draft.

The project grew beyond a C library into a family of privilege-management tools and helper code. The README names capsh, getpcaps, setcap, and getcap as example programs, while the Fully Capable site documents libpsx for POSIX semantics in threaded applications and Go packages for capability manipulation.

### Historique d'adoption

libcap became baseline Linux security infrastructure because file capabilities and process capabilities need user-space tooling. Distribution packages expose its command-line tools for administrators and its headers and library for software that must drop root while keeping only specific privileges.

### Modes d'utilisation

Administrators use setcap and getcap to assign and inspect file capabilities, getpcaps to inspect processes, and capsh to experiment with capability sets and shells. Developers link libcap when applications need direct control over Linux capability state.

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

libcap is one of the packages that turns a kernel security feature into everyday packaging policy. Without it, downstream maintainers have a harder time replacing setuid-root patterns with smaller capability grants.

### Chronologie

- POSIX.1e draft 15: Upstream README identifies this draft as the capabilities model libcap targets.
- 2024-05-18: kernel.org refs list libcap 2.70 tags.
- 2024-10-25: kernel.org refs list libcap 2.71 tags.
- 2025-03-04: kernel.org refs list libcap 2.75 tags.
- 2026-04-05: kernel.org refs list libcap 2.78 tags.

### Related projects

- Related projects include the Linux kernel capability implementation, libcap-ng, libpsx, pam_cap, Go cap and psx packages, and distribution packaging that replaces setuid-root usage with file capabilities.

### Sources

- <https://formulae.brew.sh/formula/libcap>
- <https://git.kernel.org/pub/scm/libs/libcap/libcap.git>
- <https://git.kernel.org/pub/scm/libs/libcap/libcap.git/plain/CHANGELOG>
- <https://git.kernel.org/pub/scm/libs/libcap/libcap.git/plain/README>
- <https://git.kernel.org/pub/scm/libs/libcap/libcap.git/refs/tags>
- <https://sites.google.com/site/fullycapable>


## Notes de sécurité

library-like package without higher-risk signals.

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

## Autres enregistrements de gestionnaires de paquets

- Nix - libcap: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libcap/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - libcap - 2.78-r0: normalized package name match | Alpine Linux edge package indexes: libcap from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | POSIX 1003.1e capabilities | https://sites.google.com/site/fullycapable/
- apk - libcap-dev - 2.78-r0: normalized package name match | Alpine Linux edge package indexes: libcap-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | POSIX 1003.1e capabilities (development files) | https://sites.google.com/site/fullycapable/
- apk - libcap-doc - 2.78-r0: normalized package name match | Alpine Linux edge package indexes: libcap-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | POSIX 1003.1e capabilities (documentation) | https://sites.google.com/site/fullycapable/
- apk - libcap-getcap - 2.78-r0: normalized package name match | Alpine Linux edge package indexes: libcap-getcap from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | POSIX 1003.1e capabilities (getcap utility) | https://sites.google.com/site/fullycapable/
- apk - libcap-setcap - 2.78-r0: normalized package name match | Alpine Linux edge package indexes: libcap-setcap from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | POSIX 1003.1e capabilities (setcap utility) | https://sites.google.com/site/fullycapable/
- apk - libcap-static - 2.78-r0: normalized package name match | Alpine Linux edge package indexes: libcap-static from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | POSIX 1003.1e capabilities (static library) | https://sites.google.com/site/fullycapable/
- apk - libcap-utils - 2.78-r0: normalized package name match | Alpine Linux edge package indexes: libcap-utils from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | POSIX 1003.1e capabilities (extra utils) | https://sites.google.com/site/fullycapable/
- apk - libcap2 - 2.78-r0: normalized package name match | Alpine Linux edge package indexes: libcap2 from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | POSIX 1003.1e capabilities (libraries) | https://sites.google.com/site/fullycapable/
- dnf - captree - 2.78-2.fc45: normalized package name match | Fedora Rawhide package metadata: captree from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Capability inspection utility | https://sites.google.com/site/fullycapable/
- dnf - libcap - 2.78-2.fc45: normalized package name match | Fedora Rawhide package metadata: libcap from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Library for getting and setting POSIX.1e capabilities | https://sites.google.com/site/fullycapable/
- dnf - libcap-devel - 2.78-2.fc45: normalized package name match | Fedora Rawhide package metadata: libcap-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development files for libcap | https://sites.google.com/site/fullycapable/
- dnf - libcap-static - 2.78-2.fc45: normalized package name match | Fedora Rawhide package metadata: libcap-static from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Static libraries for libcap development | https://sites.google.com/site/fullycapable/
- pacman - libcap - 2.78-1: normalized package name match | Arch Linux sync databases: libcap from https://geo.mirror.pkgbuild.com/core/os/x86_64/core.db.tar.gz | POSIX 1003.1e capabilities | https://sites.google.com/site/fullycapable/
- zypper - libcap-devel - 2.78-1.4: normalized package name match | openSUSE Tumbleweed package metadata: libcap-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Development files for libcap | https://sites.google.com/site/fullycapable/
- zypper - libcap-progs - 2.78-1.4: normalized package name match | openSUSE Tumbleweed package metadata: libcap-progs from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Libcap utility programs | https://sites.google.com/site/fullycapable/


## Combined YAML source

View the package source record on GitHub. [combined/libcap.yml](https://github.com/mxcl/pkgdb/blob/main/combined/libcap.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
