Automic VaultAutomic Vault

brew

使用 Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, zypper, scoop, winget 安装 ccache

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install ccache

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install ccache

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

Linux

Alpine Linux apk已验证 · 92%
sudo apk add ccache

Alpine Linux edge package indexes · ccache · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install ccache

Debian stable package indexes · ccache · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install ccache

Fedora Rawhide package metadata · ccache · 来源: dl.fedoraproject.org

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

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

Arch Linux pacman已验证 · 92%
sudo pacman -S ccache

Arch Linux sync databases · ccache · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install ccache

openSUSE Tumbleweed package metadata · ccache · 来源: download.opensuse.org

Windows

Chocolatey已验证 · 92%
choco install ccache

Chocolatey community package catalog · ccache · 来源: community.chocolatey.org

Scoop已验证 · 92%
scoop install main/ccache

Scoop official bucket manifest trees · bucket/ccache.json · 来源: api.github.com

Windows Package Manager已验证 · 92%
winget install --id Ccache.Ccache -e

Windows Package Manager source index · Ccache.Ccache · 来源: cdn.winget.microsoft.com

概览

软件包摘要

Object-file caching compiler wrapper

命令和别名

  • ccache

历史

项目历史与用法

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.

时间线

  • 2010: Official credits identify Joel Rosdahl as maintainer from this year.
  • 2016-06-06: Official news says source code and bug tracking moved to GitHub.
  • 2019-04-03: Official news says the website moved to ccache.dev.
  • 2026-05-04: Official news lists ccache 4.13.6 as released.

Related projects

  • Erik Thiele's compilercache, GCC, Clang, MSVC, distcc-style compiler-wrapper workflows, and remote cache/storage helpers.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 6 个运行时依赖。
  • 构建元数据列出 7 个构建依赖。

建议审查

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

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.

Linux
$CCACHE_CONFIGPATH$CCACHE_DIR/ccache.conf<cache_dir>/ccache.conf~/.ccache/ccache.conf$XDG_CONFIG_HOME/ccache/ccache.conf~/.config/ccache/ccache.conf
macOS
$CCACHE_CONFIGPATH$CCACHE_DIR/ccache.conf<cache_dir>/ccache.conf~/.ccache/ccache.conf$XDG_CONFIG_HOME/ccache/ccache.conf~/Library/Preferences/ccache/ccache.conf
Windows
%CCACHE_CONFIGPATH%%CCACHE_DIR%/ccache.conf<cache_dir>\ccache.conf%USERPROFILE%\.ccache\ccache.conf%LOCALAPPDATA%\ccache\ccache.conf%APPDATA%\ccache\ccache.conf

可执行文件

已安装的可执行文件

命令类型暴露范围备注
ccachecli全局可执行文件

新鲜度

版本和新鲜度

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

页面生成时间2026-07-10
管理器版本4.13.6
管理器更新时间2026-06-06
本地数据OK
上游not checked
检测到的最新版本未检测到

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
Pulseupdated
依赖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 DatabaseHomebrew formula API
Taphomebrew/core
Full Nameccache
Version Scheme0
Revision1
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

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

Debian apt95%

ccache 4.11.2-2

Compiler cache for fast recompilation of C/C++ code

https://ccache.dev

sudo apt install ccache
  • Section: devel
  • Architecture: amd64
  • 7 依赖
  • 2 可选依赖
  • normalized package name match
  • 匹配方式:Ccache
Debian stable package indexes · deb.debian.org · Debian stable package indexes: ccache from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

ccache

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

ccache 4.9.1-1

Compiler cache for fast recompilation of C/C++ code

https://ccache.dev

sudo apt install ccache
  • Section: universe/devel
  • Architecture: amd64
  • 5 依赖
  • 2 可选依赖
  • normalized package name match
  • 匹配方式:Ccache
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: ccache from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

ccache 4.13.6-r0

fast C/C++ compiler cache

https://ccache.dev/

sudo apk add ccache
  • License: GPL-3.0-or-later
  • Architecture: x86_64
  • Source Package: ccache
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Ccache
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: ccache from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

ccache-doc 4.13.6-r0

fast C/C++ compiler cache (documentation)

https://ccache.dev/

sudo apk add ccache-doc
  • License: GPL-3.0-or-later
  • Architecture: x86_64
  • Source Package: ccache
  • normalized package name match
  • 匹配方式:Ccache
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: ccache-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
dnf95%

ccache 4.13.6-1.fc45

C/C++ compiler cache

http://ccache.dev/

sudo dnf install ccache
  • License: GPL-3.0-or-later AND Apache-2.0 AND BSL-1.0 AND MIT
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: ccache
  • 17 依赖
  • 4 提供
  • normalized package name match
  • 匹配方式:Ccache
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ccache from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

ccache 4.13.6-1

Compiler cache that speeds up recompilation by caching previous compilations

https://ccache.dev/

sudo pacman -S ccache
  • License: GPL-3.0-or-later
  • Architecture: x86_64
  • 10 依赖
  • normalized package name match
  • 匹配方式:Ccache
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: ccache from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

ccache 4.13.6-1.1

A Fast C/C++ Compiler Cache

https://ccache.dev/

sudo zypper install ccache
  • License: GPL-3.0-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: ccache
  • 9 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Ccache
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: ccache from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

ccache

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

ccache

choco install ccache
  • normalized package name match
  • 匹配方式:Ccache
Chocolatey community package catalog · community.chocolatey.org · Chocolatey community package catalog: ccache from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','carbon'
Scoop95%

main/ccache

scoop install main/ccache
  • normalized package name match
  • 匹配方式:Ccache
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/ccache.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
winget95%

Ccache.Ccache

winget install --id Ccache.Ccache -e
  • normalized package name match
  • 匹配方式:Ccache
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: Ccache.Ccache from https://cdn.winget.microsoft.com/cache/source.msix

来源线索

由仓库数据生成

此页面由 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