macOS
brew install ccachelocal Homebrew formula metadata
sudo port install ccacheMacPorts ports tree · devel/ccache/Portfile · 来源: api.github.com
安装
brew install ccachelocal Homebrew formula metadata
sudo port install ccacheMacPorts ports tree · devel/ccache/Portfile · 来源: api.github.com
sudo apk add ccacheAlpine Linux edge package indexes · ccache · 来源: dl-cdn.alpinelinux.org
sudo apt install ccacheDebian stable package indexes · ccache · 来源: deb.debian.org
sudo dnf install ccacheFedora Rawhide package metadata · ccache · 来源: dl.fedoraproject.org
nix profile install nixpkgs#ccachenixpkgs package indexes · pkgs/by-name/cc/ccache/package.nix · 来源: api.github.com
sudo pacman -S ccacheArch Linux sync databases · ccache · 来源: geo.mirror.pkgbuild.com
sudo zypper install ccacheopenSUSE Tumbleweed package metadata · ccache · 来源: download.opensuse.org
choco install ccacheChocolatey community package catalog · ccache · 来源: community.chocolatey.org
scoop install main/ccacheScoop official bucket manifest trees · bucket/ccache.json · 来源: api.github.com
winget install --id Ccache.Ccache -eWindows Package Manager source index · Ccache.Ccache · 来源: cdn.winget.microsoft.com
概览
Object-file caching compiler wrapper
历史
Ccache is a compiler cache that speeds up recompilation by caching prior compilations and detecting when the same compilation is being done again.
The official credits page says ccache was originally written by Andrew Tridgell, inspired by Erik Thiele's compilercache shell script, and has been developed and maintained by Joel Rosdahl since 2010.
The official site presents ccache as a cross-platform build accelerator supporting GCC, Clang, MSVC, and similar compilers on Linux, Windows, macOS, and other Unix-like systems. The supplied package facts show broad package-manager availability, including Homebrew, Debian, Fedora, Nix, MacPorts, Chocolatey, Scoop, winget, Alpine, Arch, Ubuntu, and zypper.
Ccache is used by developers and build farms to speed repeated clean builds, branch builds, and shared compilation servers. The manual documents command modes, statistics, automatic cleanup, local and remote storage, cache-specific and directory-specific configuration files, environment variables, and direct/depend modes.
Few developer packages are as visibly package-manager-adjacent as ccache: it is commonly installed globally, inserted ahead of compilers in PATH or build-system variables, and tuned through predictable config files and environment variables. It is also a useful packaging stress test because it wraps many compilers while trying to preserve exact compiler output.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
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.
$CCACHE_CONFIGPATH$CCACHE_DIR/ccache.conf<cache_dir>/ccache.conf~/.ccache/ccache.conf$XDG_CONFIG_HOME/ccache/ccache.conf~/.config/ccache/ccache.conf$CCACHE_CONFIGPATH$CCACHE_DIR/ccache.conf<cache_dir>/ccache.conf~/.ccache/ccache.conf$XDG_CONFIG_HOME/ccache/ccache.conf~/Library/Preferences/ccache/ccache.conf%CCACHE_CONFIGPATH%%CCACHE_DIR%/ccache.conf<cache_dir>\ccache.conf%USERPROFILE%\.ccache\ccache.conf%LOCALAPPDATA%\ccache\ccache.conf%APPDATA%\ccache\ccache.conf可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
ccache | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/ccache/ccache
安装元数据
| 软件包键 | brew:ccache |
|---|---|
| 版本 | 4.13.6 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/ccache |
| 主页 | https://ccache.dev/ |
| 仓库 | https://github.com/ccache/ccache |
| 上游文档 | https://ccache.dev/documentation.html |
| 许可证 | GPL-3.0-or-later |
| 源码归档 | https://github.com/ccache/ccache/releases/download/v4.13.6/ccache-4.13.6.tar.xz |
| 最后更新 | 2026-06-06T10:04:21Z |
| Pulse | updated |
| 依赖 | blake3, fmt, hiredis, openssl@3, xxhash, zstd |
| 构建依赖 | asciidoctor, cmake, cpp-httplib, doctest, pkgconf, span-lite, tl-expected |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
| 注意事项 | To install symlinks for compilers that will automatically use ccache, prepend this directory to your PATH: $HOMEBREW_PREFIX/opt/ccache/libexec If this is an upgrade and you have previously added the symlinks to your PATH, you may need to modify it to the path specified above so it points to the current version. NOTE: ccache can prevent some software from compiling. ALSO NOTE: The brew command, by design, will never use ccache. |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | ccache |
| Version Scheme | 0 |
| Revision | 1 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
ccache 4.11.2-2
Compiler cache for fast recompilation of C/C++ code
sudo apt install ccacheccache
nix profile install nixpkgs#ccacheccache 4.9.1-1
Compiler cache for fast recompilation of C/C++ code
sudo apt install ccacheccache 4.13.6-r0
fast C/C++ compiler cache
sudo apk add ccacheccache-doc 4.13.6-r0
fast C/C++ compiler cache (documentation)
sudo apk add ccache-docccache 4.13.6-1.fc45
C/C++ compiler cache
sudo dnf install ccacheccache 4.13.6-1
Compiler cache that speeds up recompilation by caching previous compilations
sudo pacman -S ccacheccache 4.13.6-1.1
A Fast C/C++ Compiler Cache
sudo zypper install ccacheccache
sudo port install ccacheccache
choco install ccachemain/ccache
scoop install main/ccacheCcache.Ccache
winget install --id Ccache.Ccache -e来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.