macOS
brew install cliblocal Homebrew formula metadata
sudo port install clibMacPorts ports tree · devel/clib/Portfile · source: api.github.com
brew
Package manager for C programming. Version 2.8.7 via Homebrew; verified from local package data.
install
brew install cliblocal Homebrew formula metadata
sudo port install clibMacPorts ports tree · devel/clib/Portfile · source: api.github.com
nix profile install nixpkgs#clibnixpkgs package indexes · pkgs/by-name/cl/clib/package.nix · source: api.github.com
overview
Package manager for C programming
history
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.
security posture
infrastructure mutation or orchestration signal.
orange risk · medium confidence · infrastructure
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
local files
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.
Config paths the tool may read or write during local use.
./clib.jsonexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
clib | cli | global executable | |
clib-build | cli | global executable | |
clib-configure | cli | global executable | |
clib-init | cli | global executable | |
clib-install | cli | global executable | |
clib-search | cli | global executable | |
clib-uninstall | cli | global executable | |
clib-update | cli | global executable | |
clib-upgrade | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
install metadata
| Package key | brew:clib |
|---|---|
| Version | 2.8.7 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/clib |
| Homepage | https://github.com/clibs/clib |
| Repository | https://github.com/clibs/clib |
| Upstream docs | https://github.com/clibs/clib#readme |
| License | MIT |
| Source archive | https://github.com/clibs/clib/archive/refs/tags/2.8.7.tar.gz |
| Uses from macOS | curl |
| Bottle | available (on arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| 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 |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
clib
nix profile install nixpkgs#clibclib
sudo port install clibsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.