# clib を Homebrew, MacPorts, Nix でインストール

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

## インストール

```sh
sudo av install brew:clib
```

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

### macOS

- Homebrew (100%):

```sh
brew install clib
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install clib
```

  証拠: MacPorts ports tree: devel/clib/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#clib
```

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

## パッケージ情報

- **パッケージキー:** brew:clib
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/clib>
- **バージョン:** 2.8.7
- **ソース概要:** Package manager for C programming
- **ホームページ:** <https://github.com/clibs/clib>
- **リポジトリ:** <https://github.com/clibs/clib>
- **上流ドキュメント:** <https://github.com/clibs/clib#readme>
- **ライセンス:** MIT
- **ソースアーカイブ:** <https://github.com/clibs/clib/archive/refs/tags/2.8.7.tar.gz>
- **生成日時:** 2026-07-09T07:20:21+00:00

## 実行可能ファイル

- clib (cli)
- clib-build (cli)
- clib-configure (cli)
- clib-init (cli)
- clib-install (cli)
- clib-search (cli)
- clib-uninstall (cli)
- clib-update (cli)
- clib-upgrade (cli)
- clib (エイリアス)
- clib-build (エイリアス)
- clib-configure (エイリアス)
- clib-init (エイリアス)
- clib-install (エイリアス)
- clib-search (エイリアス)
- clib-uninstall (エイリアス)
- clib-update (エイリアス)
- clib-upgrade (エイリアス)

## macOS 提供ライブラリ

- curl

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sonoma, ventura, x86_64_linux

## バージョンと鮮度

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

clib is a package manager for the C programming language, built around small standalone C libraries and a `clib.json` manifest.

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

The clib GitHub repository was created in October 2012 and presents the project as a package manager for C. The README describes it as a way to promote small C utilities, improve discovery, and avoid pulling large frameworks into C projects.

clib's project model expects packages to describe themselves with `clib.json`, including fields such as name, version, repo, description, keywords, license, sources, and install commands. The wiki package listing acts as the registry and feeds `clib-search`.

### 採用の歴史

The README documents installation through Homebrew, MacPorts, Nix, and source builds on Ubuntu and Fedora, showing packaging across both macOS package managers and Unix-like source workflows.

GitHub repository metadata showed thousands of stars at research time, and the project has continued publishing 2.x releases through 2024. That combination makes it one of the more recognizable attempts to give C a lightweight package-manager workflow.

### 使われ方

clib is used to initialize projects, install dependencies, update or uninstall packages, configure and build dependencies, and search the registry. The README recommends checking fetched files into the consuming repository so end users and contributors do not need clib installed.

Common commands include `clib install clibs/ms clibs/commander`, installing packages into `./deps` or another output directory, and using `clib.json` to describe both libraries and executables.

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

clib is significant because C has no single dominant package manager comparable to npm or Cargo. clib's deliberately small model, GitHub-centered registry, vendored source expectation, and manifest format capture a practical answer to C's fragmented library-discovery problem.

For package nerds, clib sits in the lineage of language package managers but keeps C's cultural preference for source files, makefiles, and minimal runtime assumptions. Its Homebrew/MacPorts/Nix availability also made it easy to try without adopting a whole new platform.

### タイムライン

- 2012: The GitHub repository is created.
- 2017: GitHub release metadata records clib 1.8.1.
- 2023: GitHub release metadata records clib 2.8.3 and 2.8.5.
- 2024: GitHub release metadata records clib 2.8.7.

### Related projects

- The clibs GitHub organization and clib wiki package list are related because the README describes them as the package registry.
- Homebrew, MacPorts, and Nix are related distribution channels documented by the README and input package metadata.
- libcurl is a build dependency named by the README.

### ソース

- <https://github.com/clibs/clib#readme>
- <https://api.github.com/repos/clibs/clib>
- <https://api.github.com/repos/clibs/clib/releases>


## セキュリティノート

infrastructure mutation or orchestration signal.

- **Geiger リスク:** orange / 中
- infrastructure mutation or orchestration signal


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ./clib.json
## ソースデータベース詳細

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

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

- Nix - clib: normalized package name match | nixpkgs package indexes: pkgs/by-name/cl/clib/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - clib: normalized package name match | MacPorts ports tree: devel/clib/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 関連リンク

- [Source-control packages](https://www.automicvault.com/ja/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Package publisher tools](https://www.automicvault.com/ja/pkg/package-publishers/) - Belongs to a package publishing or registry command family.
- [Secret-risk packages](https://www.automicvault.com/ja/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/ja/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [conan](https://www.automicvault.com/ja/pkg/brew/conan/) - Shares av.db curated category or tags: c, cli, developer-tools, package-management, package-manager.
- [pdm](https://www.automicvault.com/ja/pkg/brew/pdm/) - Shares av.db curated category or tags: cli, dependency-management, developer-tools, package-management, package-manager.
- [poetry](https://www.automicvault.com/ja/pkg/brew/poetry/) - Shares av.db curated category or tags: cli, dependency-management, developer-tools, package-management, package-manager.
- [zigmod](https://www.automicvault.com/ja/pkg/brew/zigmod/) - Shares av.db curated category or tags: cli, dependency-management, developer-tools, package-management, package-manager.
- [akku](https://www.automicvault.com/ja/pkg/brew/akku/) - Shares av.db curated category or tags: cli, developer-tools, package-management, package-manager.
- [bower](https://www.automicvault.com/ja/pkg/brew/bower/) - Shares av.db curated category or tags: cli, developer-tools, package-management, package-manager.
- [cabal-install](https://www.automicvault.com/ja/pkg/brew/cabal-install/) - Shares av.db curated category or tags: cli, developer-tools, package-management, package-manager.
- [composer](https://www.automicvault.com/ja/pkg/brew/composer/) - Shares av.db curated category or tags: cli, developer-tools, package-management, package-manager.
- [cpanminus](https://www.automicvault.com/ja/pkg/brew/cpanminus/) - Local metadata places this package in an adjacent workflow. Shared terms: build, cli, developer, developer-tools, install.
- [mint](https://www.automicvault.com/ja/pkg/brew/mint/) - Local package facts share a topical domain. Shared terms: cli, dependency, developer, developer-tools, management.
- [spago](https://www.automicvault.com/ja/pkg/brew/spago/) - Local metadata places this package in an adjacent workflow. Shared terms: build, cli, developer, developer-tools, management.

## Combined YAML source

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


## ソース

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- 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
