# 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/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-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
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/ccache>
- **バージョン:** 4.13.6
- **ソース概要:** Object-file caching compiler wrapper
- **ホームページ:** <https://ccache.dev/>
- **リポジトリ:** <https://github.com/ccache/ccache>
- **上流ドキュメント:** <https://ccache.dev/>
- **ライセンス:** GPL-3.0-or-later
- **ソースアーカイブ:** <https://github.com/ccache/ccache/releases/download/v4.13.6/ccache-4.13.6.tar.xz>
- **最終更新:** 2026-08-02T01:55:34+09:00
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- ccache (cli)
- ccache (エイリアス)

## 依存関係

- blake3
- fmt
- hiredis
- openssl@3
- xxhash
- zstd

## ビルド依存関係

- asciidoctor
- cmake
- cpp-httplib
- doctest
- pkgconf
- span-lite
- tl-expected

## インストール挙動

- 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.
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 4.13.6
- マネージャ更新日: 2026-08-02
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/ccache/ccache
- 情報: No cached GitHub release or tag data was available.
## プロジェクトの歴史と使われ方

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
## ソースデータベース詳細

- **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:** head, stable

## 他のパッケージマネージャ記録

- 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/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-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


## 関連リンク

- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/ja/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/ja/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Language runtime packages](https://pkg.so/ja/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [openssl@3](https://pkg.so/ja/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [zstd](https://pkg.so/ja/brew/zstd/) - Runtime dependency declared by Homebrew.
- [xxhash](https://pkg.so/ja/brew/xxhash/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/ja/brew/pkgconf/) - Build dependency declared by Homebrew.
- [cmake](https://pkg.so/ja/brew/cmake/) - Build dependency declared by Homebrew.
- [asciidoctor](https://pkg.so/ja/brew/asciidoctor/) - Build dependency declared by Homebrew.
- [nuitka](https://pkg.so/ja/brew/nuitka/) - Popular package that depends on this formula.
- [recc](https://pkg.so/ja/brew/recc/) - Shares pkgdb curated category or tags: build-tools, c, cli, compiler-cache, developer-tools.
- [distcc](https://pkg.so/ja/brew/distcc/) - Shares pkgdb curated category or tags: build-tools, c, c-plus-plus, cli, developer-tools.
- [octobuild](https://pkg.so/ja/brew/octobuild/) - Shares pkgdb curated category or tags: build-cache, build-tools, cli, compiler-cache, developer-tools.
- [bear](https://pkg.so/ja/brew/bear/) - Shares pkgdb curated category or tags: build-tools, clang, cli, developer-tools.
- [aarch64-elf-gcc](https://pkg.so/ja/brew/aarch64-elf-gcc/) - Shares pkgdb curated category or tags: c, c-plus-plus, cli, developer-tools, gcc.
- [cargo-sweep](https://pkg.so/ja/brew/cargo-sweep/) - Shares pkgdb curated category or tags: build-cache, build-tools, cli, developer-tools.
- [compiledb](https://pkg.so/ja/brew/compiledb/) - Shares pkgdb curated category or tags: build-tools, clang, cli, developer-tools.
- [castxml](https://pkg.so/ja/brew/castxml/) - Shares pkgdb curated category or tags: c, c-plus-plus, clang, cli, developer-tools.
- [rtags](https://pkg.so/ja/brew/rtags/) - Local package facts share a topical domain. Shared terms: c-plus-plus, clang, cli, developer, developer-tools.

## 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
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
