# cppi を Homebrew, apt, dnf, Nix, zypper でインストール

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

## インストール

```sh
sudo av install brew:cppi
```

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

### macOS

- Homebrew (100%):

```sh
brew install cppi
```

  証拠: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install cppi
```

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

- dnf (92%):

```sh
sudo dnf install cppi
```

  証拠: Fedora Rawhide package metadata: cppi 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#cppi
```

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

- zypper (92%):

```sh
sudo zypper install cppi
```

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

## パッケージ情報

- **パッケージキー:** brew:cppi
- **パッケージマネージャ:** Homebrew
- **バージョン:** 1.18
- **ソース概要:** Indent C preprocessor directives to reflect their nesting
- **ホームページ:** <https://www.gnu.org/software/cppi/>
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- cppi (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

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

GNU cppi is a small GNU developer tool for indenting C preprocessor directives so their nesting is visible.

### プロジェクトの歴史

The package is maintained as a GNU program, with Savannah hosting its project and source repository and GNU publishing the user manual and release tarballs.

### 採用の歴史

Its adoption is typical of compact GNU command-line utilities: it appears in Unix package collections as a formatting and lint-adjacent aid for C and C++ source trees.

### 使われ方

cppi is used from the command line on source files to make conditional-preprocessor structure easier to review by aligning directives with their nesting level.

### パッケージ好きにとっての重要性

The package matters to maintainers because it is narrowly scoped, reproducibly distributed through GNU release archives, and useful in style or cleanup pipelines without pulling in a full C formatter.

### タイムライン

- 2010: GNU FTP archive lists cppi 1.14 and 1.15 release tarballs.
- 2013: GNU FTP archive lists cppi 1.18 release tarballs.

### Related projects

- cppi sits near C formatting and linting tools, but its official scope is specifically C preprocessor directive indentation.

### ソース

- <https://www.gnu.org/software/cppi/>
- <https://www.gnu.org/software/cppi/manual>
- <https://savannah.gnu.org/projects/cppi/>
- <https://ftp.gnu.org/gnu/cppi/>


## セキュリティノート

narrow executable package without higher-risk signals.

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

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

- Debian apt - cppi - 1.18-3: normalized package name match | Debian stable package indexes: cppi from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | adjusts or checks indentation of C and C++ preprocessor directives | https://www.gnu.org/software/cppi/
- Nix - cppi: normalized package name match | nixpkgs package indexes: pkgs/by-name/cp/cppi/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- dnf - cppi - 1.18-29.fc45: normalized package name match | Fedora Rawhide package metadata: cppi from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | C preprocessor directive indenter | http://savannah.gnu.org/projects/cppi/
- zypper - cppi - 1.18-2.35: normalized package name match | openSUSE Tumbleweed package metadata: cppi from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | C preprocessor directive indenter | https://savannah.gnu.org/projects/cppi
- zypper - cppi-lang - 1.18-2.35: normalized package name match | openSUSE Tumbleweed package metadata: cppi-lang from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Translations for package cppi | https://savannah.gnu.org/projects/cppi


## Combined YAML source

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


## ソース

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