# 使用 Homebrew, apk, MacPorts, Nix, zypper, scoop, winget 安装 scc

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

## 安装

```sh
sudo av install brew:scc
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install scc
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install scc
```

  证据: MacPorts ports tree: devel/scc/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add scc
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#scc
```

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

- zypper (92%):

```sh
sudo zypper install scc
```

  证据: openSUSE Tumbleweed package metadata: scc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Scoop (92%):

```sh
scoop install main/scc
```

  证据: Scoop official bucket manifest trees: bucket/scc.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id BenBoyter.scc -e
```

  证据: Windows Package Manager source index: BenBoyter.scc from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:scc
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/scc>
- **版本:** 3.7.0
- **来源摘要:** Fast and accurate code counter with complexity and COCOMO estimates
- **主页:** <https://github.com/boyter/scc/>
- **仓库:** <https://github.com/boyter/scc>
- **上游文档:** <https://github.com/boyter/scc/>
- **许可证:** MIT OR Unlicense
- **源码归档:** <https://github.com/boyter/scc/archive/refs/tags/v3.7.0.tar.gz>
- **最后更新:** 2026-07-26T04:03:36+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- scc (cli)
- scc (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 3.7.0
- 管理器更新时间: 2026-07-26
- 本地数据: OK
- 上游仓库: https://github.com/boyter/scc
- 检测到的最新版本: v3.7.0 (当前)

## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** scc
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 其他软件包管理器记录

- Nix - scc: normalized package name match | nixpkgs package indexes: pkgs/by-name/sc/scc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - scc - 3.7.0-r4: normalized package name match | Alpine Linux edge package indexes: scc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Very fast accurate code counter with complexity calculations and COCOMO estimates written in pure Go | https://github.com/boyter/scc
- zypper - scc - 3.6.0-1.7: normalized package name match | openSUSE Tumbleweed package metadata: scc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | CLI tool to report lines of code and other metrics | https://github.com/boyter/scc
- MacPorts - scc: normalized package name match | MacPorts ports tree: devel/scc/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/scc: normalized package name match | Scoop official bucket manifest trees: bucket/scc.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - BenBoyter.scc: normalized package name match | Windows Package Manager source index: BenBoyter.scc from https://cdn.winget.microsoft.com/cache/source.msix


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [cloc](https://pkg.so/zh-hans/brew/cloc/) - Shares pkgdb curated category or tags: cli, code-analysis, developer-tools.
- [fallow](https://pkg.so/zh-hans/brew/fallow/) - Shares pkgdb curated category or tags: cli, code-analysis, developer-tools.
- [astgen](https://pkg.so/zh-hans/brew/astgen/) - Shares pkgdb curated category or tags: cli, code-analysis, developer-tools.
- [loc](https://pkg.so/zh-hans/brew/loc/) - Shares pkgdb curated category or tags: cli, code-analysis, developer-tools.
- [clang-include-graph](https://pkg.so/zh-hans/brew/clang-include-graph/) - Shares pkgdb curated category or tags: cli, code-analysis, developer-tools.
- [cppinsights](https://pkg.so/zh-hans/brew/cppinsights/) - Shares pkgdb curated category or tags: cli, code-analysis, developer-tools.
- [ohcount](https://pkg.so/zh-hans/brew/ohcount/) - Shares pkgdb curated category or tags: cli, code-analysis, developer-tools.
- [lizard-analyzer](https://pkg.so/zh-hans/brew/lizard-analyzer/) - Shares pkgdb curated category or tags: cli, code-analysis, developer-tools.
- [sloc](https://pkg.so/zh-hans/npm/sloc/) - Local package facts share a topical domain. Shared terms: analysis, cli, code, code-analysis, developer.

## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
