# 使用 Homebrew, apk, apt, Nix 安装 cpplint

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

## 安装

```sh
sudo av install brew:cpplint
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install cpplint
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add cpplint
```

  证据: Alpine Linux edge package indexes: cpplint from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install cpplint
```

  证据: Debian stable package indexes: cpplint from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#cpplint
```

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

## 软件包事实

- **软件包键:** brew:cpplint
- **软件包管理器:** Homebrew
- **版本:** 2.0.2
- **来源摘要:** Static code checker for C++
- **主页:** <https://pypi.org/project/cpplint/>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- cpplint (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 2.0.2
## 项目历史与用法

cpplint is a command-line static style checker for C and C++ files following Google's C++ style guide.

### 项目历史

The maintained cpplint package identifies itself as a fork of Google's cpplint from google/styleguide. Its README says the fork keeps the same core purpose while accepting fixes that make the tool usable in wider contexts.

### 采用历史

The package is distributed through PyPI for Python-based installation and through Unix package managers, making it easy to add to local developer workflows and CI jobs.

### 使用方式

Typical usage is cpplint [OPTIONS] files. The fork documents practical additions such as Python 3 compatibility, recursive file discovery, exclusion support, JUnit XML output, configurable extensions, and repository-root overrides.

### 为什么软件包爱好者会关心

cpplint is a good example of a small language-policy tool that package managers keep around because many C++ projects want style checking without adopting a full compiler analysis stack.

### 时间线

- Original upstream: Google open-sourced the in-house cpplint tool in google/styleguide.
- Fork era: The cpplint/cpplint package tracks fixes and packaging-friendly changes for wider use.

### Related projects

- The package is directly related to Google's C++ Style Guide and the google/styleguide repository.

### 来源

- <https://github.com/cpplint/cpplint#readme>
- <https://pypi.org/project/cpplint/>
- <https://github.com/google/styleguide>


## 安全说明

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

- Unix: CPPLINT.cfg
## 其他软件包管理器记录

- Debian apt - cpplint - 1.6.1-3: normalized package name match | Debian stable package indexes: cpplint from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Static code checker for C++ | https://github.com/cpplint/cpplint
- Nix - cpplint: normalized package name match | nixpkgs package indexes: pkgs/by-name/cp/cpplint/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - cpplint - 1.6.1-3: normalized package name match | Ubuntu 24.04 LTS package indexes: cpplint from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Static code checker for C++ | https://github.com/cpplint/cpplint
- apk - cpplint - 2.0.2-r1: normalized package name match | Alpine Linux edge package indexes: cpplint from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Static code checker for C++ | https://github.com/cpplint/cpplint
- apk - cpplint-pyc - 2.0.2-r1: normalized package name match | Alpine Linux edge package indexes: cpplint-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Precompiled Python bytecode for cpplint | https://github.com/cpplint/cpplint


## Combined YAML source

View the package source record on GitHub. [combined/cpplint.yml](https://github.com/mxcl/pkgdb/blob/main/combined/cpplint.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
