macOS
brew install cliblocal Homebrew formula metadata
sudo port install clibMacPorts ports tree · devel/clib/Portfile · 来源: api.github.com
安装
brew install cliblocal Homebrew formula metadata
sudo port install clibMacPorts ports tree · devel/clib/Portfile · 来源: api.github.com
nix profile install nixpkgs#clibnixpkgs package indexes · pkgs/by-name/cl/clib/package.nix · 来源: api.github.com
概览
Package manager for C programming
历史
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.
安全态势
infrastructure mutation or orchestration signal.
orange 风险 · 中 置信度 · infrastructure
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
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.json可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
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 | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:clib |
|---|---|
| 版本 | 2.8.7 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/clib |
| 主页 | 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 |
| macOS 提供的库 | curl |
| Bottle | 可用 (于 arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
clib
nix profile install nixpkgs#clibclib
sudo port install clib来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.