# libcap-ng を Homebrew, apk, dnf, pacman, apt, Nix, zypper でインストール

libcap-ng のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

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

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install libcap-ng
```

  証拠: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add libcap-ng
```

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

- dnf (92%):

```sh
sudo dnf install libcap-ng
```

  証拠: Fedora Rawhide package metadata: libcap-ng from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- pacman (92%):

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

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

- Debian apt (92%):

```sh
sudo apt install libcap-ng-dev
```

  証拠: Debian stable package indexes: libcap-ng-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#libcap_ng
```

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

- zypper (92%):

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

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

## パッケージ情報

- **パッケージキー:** brew:libcap-ng
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/libcap-ng>
- **バージョン:** 0.9.3
- **ソース概要:** Library for Linux that makes using posix capabilities easy
- **ホームページ:** <https://people.redhat.com/sgrubb/libcap-ng/>
- **リポジトリ:** <https://github.com/stevegrubb/libcap-ng>
- **上流ドキュメント:** <https://people.redhat.com/sgrubb/libcap-ng/>
- **ライセンス:** LGPL-2.1-or-later AND GPL-2.0-or-later
- **ソースアーカイブ:** <https://github.com/stevegrubb/libcap-ng/archive/refs/tags/v0.9.3.tar.gz>
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- filecap (cli)
- netcap (cli)
- pscap (cli)
- filecap (エイリアス)
- netcap (エイリアス)
- pscap (エイリアス)

## ビルド依存関係

- autoconf
- automake
- libtool
- m4
- pkgconf
- python-setuptools
- python@3.14
- swig

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 0.9.3
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/stevegrubb/libcap-ng
- 検出された最新: v0.9.3 (最新)
- 情報: No package-manager update timestamp was available.
## プロジェクトの歴史と使われ方

libcap-ng is Steve Grubb's Linux capability library and utility suite, designed to make POSIX capability programming easier than the older libcap API.

### プロジェクトの歴史

The libcap-ng site states the design goal directly: make programming with POSIX capabilities easier than the traditional libcap library. Its README demonstrates common use cases such as dropping all capabilities, keeping selected capabilities, checking capability state, and retaining capabilities across UID changes.

The project paired the C library with administrative tools. netcap reports listening network processes and their capabilities, pscap reports privileged processes, filecap searches for files with file capabilities, and cap-audit can audit capability checks when built with the optional eBPF-based tooling.

### 採用の歴史

libcap-ng was adopted by Linux distributions because it gives application developers and packagers a smaller API for privilege dropping, while giving administrators tools to inspect capability exposure across a running system.

### 使われ方

Developers use capng_clear, capng_update, capng_apply, and related calls to drop or retain Linux capabilities. Administrators use pscap, netcap, and filecap to find over-privileged processes and files.

### パッケージ好きにとっての重要性

In package-manager terms, libcap-ng is a security plumbing package: it is rarely user-facing, but it makes least-privilege patches shorter and more reviewable. That is exactly the kind of small library that changes whether downstream packages actually drop privileges.

### タイムライン

- 0.4: Initial public release, according to the upstream ChangeLog.
- 0.6: Added Python bindings and an m4 macro for autotools consumers.
- 0.8: Added ambient capability support and V3 filesystem capability support.
- 2024-04-09: The project site listed libcap-ng 0.8.5 release files.
- 0.9: The README documents a distribution move away from people.redhat.com release hosting to the GitHub page.

### Related projects

- Related projects include libcap, Linux capabilities, file capabilities, procfs capability inspection, systemd ambient capabilities, and eBPF-based capability auditing.

### ソース

- <https://formulae.brew.sh/formula/libcap-ng>
- <https://github.com/stevegrubb/libcap-ng>
- <https://people.redhat.com/sgrubb/libcap-ng>
- <https://people.redhat.com/sgrubb/libcap-ng/ChangeLog>
- <https://raw.githubusercontent.com/stevegrubb/libcap-ng/master/README.md>


## セキュリティノート

library-like package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- library-like package without higher-risk signals

## ソースデータベース詳細

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** libcap-ng
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Requirements:** linux
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 他のパッケージマネージャ記録

- Debian apt - libcap-ng-dev - 0.8.5-4+b1: normalized package name match | Debian stable package indexes: libcap-ng-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Development and header files for libcap-ng | https://people.redhat.com/sgrubb/libcap-ng
- Debian apt - libcap-ng-utils - 0.8.5-4+b1: normalized package name match | Debian stable package indexes: libcap-ng-utils from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Utilities for analysing and setting file capabilities | https://people.redhat.com/sgrubb/libcap-ng
- Debian apt - libcap-ng0 - 0.8.5-4+b1: normalized package name match | Debian stable package indexes: libcap-ng0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | alternate POSIX capabilities library | https://people.redhat.com/sgrubb/libcap-ng
- Debian apt - python3-cap-ng - 0.8.5-4+b1: normalized package name match | Debian stable package indexes: python3-cap-ng from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Python3 bindings for libcap-ng | https://people.redhat.com/sgrubb/libcap-ng
- Nix - libcap_ng: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libcap_ng/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libcap-ng-dev - 0.8.4-2build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libcap-ng-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Development and header files for libcap-ng | https://people.redhat.com/sgrubb/libcap-ng
- Ubuntu apt - libcap-ng-utils - 0.8.4-2build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libcap-ng-utils from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Utilities for analysing and setting file capabilities | https://people.redhat.com/sgrubb/libcap-ng
- Ubuntu apt - libcap-ng0 - 0.8.4-2build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libcap-ng0 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | alternate POSIX capabilities library | https://people.redhat.com/sgrubb/libcap-ng
- Ubuntu apt - python3-cap-ng - 0.8.4-2build2: normalized package name match | Ubuntu 24.04 LTS package indexes: python3-cap-ng from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Python3 bindings for libcap-ng | https://people.redhat.com/sgrubb/libcap-ng
- apk - libcap-ng - 0.8.5-r2: normalized package name match | Alpine Linux edge package indexes: libcap-ng from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | POSIX capabilities library | https://people.redhat.com/sgrubb/libcap-ng/index.html
- apk - libcap-ng-dev - 0.8.5-r2: normalized package name match | Alpine Linux edge package indexes: libcap-ng-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | POSIX capabilities library (development files) | https://people.redhat.com/sgrubb/libcap-ng/index.html
- apk - libcap-ng-doc - 0.8.5-r2: normalized package name match | Alpine Linux edge package indexes: libcap-ng-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | POSIX capabilities library (documentation) | https://people.redhat.com/sgrubb/libcap-ng/index.html
- apk - libcap-ng-static - 0.8.5-r2: normalized package name match | Alpine Linux edge package indexes: libcap-ng-static from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | POSIX capabilities library (static library) | https://people.redhat.com/sgrubb/libcap-ng/index.html
- apk - libcap-ng-utils - 0.8.5-r2: normalized package name match | Alpine Linux edge package indexes: libcap-ng-utils from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | posix capabilities utils | https://people.redhat.com/sgrubb/libcap-ng/index.html
- apk - py3-libcap-ng - 0.8.5-r2: normalized package name match | Alpine Linux edge package indexes: py3-libcap-ng from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | python bindings for libcap-ng | https://people.redhat.com/sgrubb/libcap-ng/index.html
- dnf - libcap-ng - 0.9.3-5.fc45: normalized package name match | Fedora Rawhide package metadata: libcap-ng from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Alternate posix capabilities library | https://github.com/stevegrubb/libcap-ng


## 関連リンク

- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/ja/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Security and crypto packages](https://pkg.so/ja/security-crypto-tools/) - Matched security, identity, cryptography, password, signing, or certificate metadata.
- [Homebrew utility packages](https://pkg.so/ja/brew-utility-packages/) - Matched Homebrew package provider.
- [python@3.14](https://pkg.so/ja/brew/python-3-14/) - Build dependency declared by Homebrew.
- [pkgconf](https://pkg.so/ja/brew/pkgconf/) - Build dependency declared by Homebrew.
- [m4](https://pkg.so/ja/brew/m4/) - Build dependency declared by Homebrew.
- [libtool](https://pkg.so/ja/brew/libtool/) - Build dependency declared by Homebrew.
- [virtiofsd](https://pkg.so/ja/brew/virtiofsd/) - Popular package that depends on this formula.
- [libcap](https://pkg.so/ja/brew/libcap/) - Shares pkgdb curated category or tags: cli, library, linux, linux-capabilities, permissions.
- [gnutls](https://pkg.so/ja/brew/gnutls/) - Shares pkgdb curated category or tags: cli, library, security.
- [libassuan](https://pkg.so/ja/brew/libassuan/) - Shares pkgdb curated category or tags: cli, library, security.
- [cyrus-sasl](https://pkg.so/ja/brew/cyrus-sasl/) - Shares pkgdb curated category or tags: cli, library, security.
- [linux-pam](https://pkg.so/ja/brew/linux-pam/) - Shares pkgdb curated category or tags: cli, linux, security.
- [opensc](https://pkg.so/ja/brew/opensc/) - Shares pkgdb curated category or tags: cli, library, security.
- [botan](https://pkg.so/ja/brew/botan/) - Shares pkgdb curated category or tags: cli, library, security.
- [ykpers](https://pkg.so/ja/brew/ykpers/) - Shares pkgdb curated category or tags: cli, library, security.
- [bubblewrap](https://pkg.so/ja/brew/bubblewrap/) - Security-sensitive metadata or terminology overlaps. Shared terms: cli, libcap, linux, security.
- [git-credential-oauth](https://pkg.so/ja/brew/git-credential-oauth/) - Security-sensitive metadata or terminology overlaps. Shared terms: cli, security, that, using.

## Combined YAML source

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


## ソース

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