# ccache を Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, zypper, scoop, winget でインストール

ccache のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:ccache
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install ccache
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ccache
```

  証拠: MacPorts ports tree: devel/ccache/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add ccache
```

  証拠: Alpine Linux edge package indexes: ccache from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install ccache
```

  証拠: Debian stable package indexes: ccache from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install ccache
```

  証拠: Fedora Rawhide package metadata: ccache from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#ccache
```

  証拠: nixpkgs package indexes: pkgs/by-name/cc/ccache/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S ccache
```

  証拠: Arch Linux sync databases: ccache from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install ccache
```

  証拠: openSUSE Tumbleweed package metadata: ccache from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install ccache
```

  証拠: Chocolatey community package catalog: ccache from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','capnproto'

- Scoop (92%):

```sh
scoop install main/ccache
```

  証拠: Scoop official bucket manifest trees: bucket/ccache.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id Ccache.Ccache -e
```

  証拠: Windows Package Manager source index: Ccache.Ccache from https://cdn.winget.microsoft.com/cache/source.msix

## パッケージ情報

- **パッケージキー:** brew:ccache
- **パッケージマネージャ:** Homebrew
- **バージョン:** 4.13.6
- **ソース概要:** Object-file caching compiler wrapper
- **ホームページ:** <https://ccache.dev/>
- **リポジトリ:** <https://github.com/ccache/ccache>
- **最終更新:** 2026-08-02T01:55:34+09:00
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- ccache (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 4.13.6
## プロジェクトの歴史と使われ方

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.

### ソース

- <https://api.github.com/repos/ccache/ccache>
- <https://github.com/ccache/ccache>
- <https://ccache.dev/>
- <https://ccache.dev/documentation.html>
- <https://ccache.dev/manual/4.13.6.html>
- <https://formulae.brew.sh/api/formula/ccache.json>


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals


## 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

- 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
## 他のパッケージマネージャ記録

- Debian apt - ccache - 4.11.2-2: normalized package name match | Debian stable package indexes: ccache from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Compiler cache for fast recompilation of C/C++ code | https://ccache.dev
- Nix - ccache: normalized package name match | nixpkgs package indexes: pkgs/by-name/cc/ccache/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - ccache - 4.9.1-1: normalized package name match | Ubuntu 24.04 LTS package indexes: ccache from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Compiler cache for fast recompilation of C/C++ code | https://ccache.dev
- apk - ccache - 4.13.6-r0: normalized package name match | Alpine Linux edge package indexes: ccache from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | fast C/C++ compiler cache | https://ccache.dev/
- apk - ccache-doc - 4.13.6-r0: normalized package name match | Alpine Linux edge package indexes: ccache-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | fast C/C++ compiler cache (documentation) | https://ccache.dev/
- dnf - ccache - 4.13.6-3.fc45: normalized package name match | Fedora Rawhide package metadata: ccache from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | C/C++ compiler cache | http://ccache.dev/
- pacman - ccache - 4.13.6-1: normalized package name match | Arch Linux sync databases: ccache from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Compiler cache that speeds up recompilation by caching previous compilations | https://ccache.dev/
- zypper - ccache - 4.13.6-1.5: normalized package name match | openSUSE Tumbleweed package metadata: ccache from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A Fast C/C++ Compiler Cache | https://ccache.dev/
- MacPorts - ccache: normalized package name match | MacPorts ports tree: devel/ccache/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - ccache: normalized package name match | Chocolatey community package catalog: ccache from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','capnproto'
- Scoop - main/ccache: normalized package name match | Scoop official bucket manifest trees: bucket/ccache.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - Ccache.Ccache: normalized package name match | Windows Package Manager source index: Ccache.Ccache from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

View the package source record on GitHub. [combined/ccache.yml](https://github.com/mxcl/pkgdb/blob/main/combined/ccache.yml)


## ソース

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
