Automic VaultAutomic Vault

brew

使用 Homebrew, MacPorts, Nix 安装 clib

查看 clib 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install clib

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install clib

MacPorts ports tree · devel/clib/Portfile · 来源: api.github.com

Linux

Nix已验证 · 92%
nix profile install nixpkgs#clib

nixpkgs package indexes · pkgs/by-name/cl/clib/package.nix · 来源: api.github.com

概览

软件包摘要

Package manager for C programming

命令和别名

  • clib
  • clib-build
  • clib-configure
  • clib-init
  • clib-install
  • clib-search
  • clib-uninstall
  • clib-update
  • clib-upgrade

历史

项目历史与用法

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.

安全态势

风险级别:orange

infrastructure mutation or orchestration signal.

风险分类器

orange 风险 · 中 置信度 · infrastructure

原因

  • infrastructure mutation or orchestration signal

信号

  • text:package manager

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 10 个平台目标。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

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

Config paths the tool may read or write during local use.

Unix
./clib.json

可执行文件

已安装的可执行文件

命令类型暴露范围备注
clibcli全局可执行文件
clib-buildcli全局可执行文件
clib-configurecli全局可执行文件
clib-initcli全局可执行文件
clib-installcli全局可执行文件
clib-searchcli全局可执行文件
clib-uninstallcli全局可执行文件
clib-updatecli全局可执行文件
clib-upgradecli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-08
管理器版本2.8.7
管理器更新时间
本地数据OK
上游当前
检测到的最新版本2.8.7

https://github.com/clibs/clib

  • 信息No package-manager update timestamp was available.低 置信度

安装元数据

软件包元数据

软件包键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 DatabaseHomebrew formula API
Taphomebrew/core
Full Nameclib
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

clib

nix profile install nixpkgs#clib
  • normalized package name match
  • 匹配方式:Clib
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/cl/clib/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
MacPorts95%

clib

sudo port install clib
  • normalized package name match
  • 匹配方式:Clib
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/clib/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment