Automic VaultAutomic Vault

brew

Install ccache with Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, scoop, winget, zypper

Object-file caching compiler wrapper. Version 4.13.6 via Homebrew; verified 2026-06-06.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install ccache

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install ccache

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

Linux

Alpine Linux apkverified · 92%
sudo apk add ccache

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

Debian aptverified · 92%
sudo apt install ccache

Debian stable package indexes · ccache · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install ccache

Fedora Rawhide package metadata · ccache · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#ccache

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

Arch Linux pacmanverified · 92%
sudo pacman -S ccache

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

openSUSE zypperverified · 92%
sudo zypper install ccache

openSUSE Tumbleweed package metadata · ccache · source: download.opensuse.org

Windows

Chocolateyverified · 92%
choco install ccache

Chocolatey community package catalog · ccache · source: community.chocolatey.org

Scoopverified · 92%
scoop install main/ccache

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

Windows Package Managerverified · 92%
winget install --id Ccache.Ccache -e

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

overview

Package summary

Object-file caching compiler wrapper

Commands and aliases

  • ccache

history

Project history and usage

Ccache is a compiler cache that speeds up recompilation by caching prior compilations and detecting when the same compilation is being done again.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 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.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Installs with 6 runtime dependencies.
  • Build metadata lists 7 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

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

executables

Installed executables

CommandKindExposureNote
ccachecliglobal executable

freshness

Version and 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.

page generated2026-07-08
manager version4.13.6
manager updated2026-06-06
local dataok
upstreamnot checked
latest detectednot detected

https://github.com/ccache/ccache

install metadata

Package metadata

Package keybrew:ccache
Version4.13.6
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/ccache
Homepagehttps://ccache.dev/
Repositoryhttps://github.com/ccache/ccache
Upstream docshttps://ccache.dev/documentation.html
LicenseGPL-3.0-or-later
Source archivehttps://github.com/ccache/ccache/releases/download/v4.13.6/ccache-4.13.6.tar.xz
Last updated2026-06-06T10:04:21Z
Pulseupdated
Dependenciesblake3, fmt, hiredis, openssl@3, xxhash, zstd
Build dependenciesasciidoctor, cmake, cpp-httplib, doctest, pkgconf, span-lite, tl-expected
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared
CaveatsTo 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.

registry facts

Source database details

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

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

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 dependencies
  • 2 optional deps
  • normalized package name match
  • Matched by: 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
  • Matched by: 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 dependencies
  • 2 optional deps
  • normalized package name match
  • Matched by: 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 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: 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
  • Matched by: 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 dependencies
  • 4 provides
  • normalized package name match
  • Matched by: 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 dependencies
  • normalized package name match
  • Matched by: 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 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: 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
  • Matched by: 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
  • Matched by: 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
  • Matched by: 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
  • Matched by: 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

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • 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