# 使用 Homebrew, apk, apt, dnf, zypper, scoop 安装 editorconfig

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

## 安装

```sh
sudo av install brew:editorconfig
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install editorconfig
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add editorconfig
```

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

- Debian apt (92%):

```sh
sudo apt install editorconfig
```

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

- dnf (92%):

```sh
sudo dnf install editorconfig
```

  证据: Fedora Rawhide package metadata: editorconfig from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- zypper (92%):

```sh
sudo zypper install editorconfig
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/editorconfig
```

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

## 软件包事实

- **软件包键:** brew:editorconfig
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/editorconfig>
- **版本:** 0.12.11
- **来源摘要:** Maintain consistent coding style between multiple editors
- **主页:** <https://editorconfig.org/>
- **仓库:** <https://github.com/editorconfig/editorconfig-core-c>
- **上游文档:** <https://editorconfig.org/>
- **许可证:** BSD-2-Clause
- **源码归档:** <https://github.com/editorconfig/editorconfig-core-c/archive/refs/tags/v0.12.11.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- editorconfig (cli)
- editorconfig-0.12.11 (cli)
- editorconfig (别名)
- editorconfig-0.12.11 (别名)

## 依赖

- pcre2

## 构建依赖

- cmake

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.12.11
- 本地数据: OK
- 上游仓库: https://github.com/editorconfig/editorconfig-core-c
- 检测到的最新版本: v0.12.11 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

EditorConfig is a cross-editor coding-style convention built around one plain text file named .editorconfig. Its package-manager identity is the command-line C core, but its cultural footprint is broader: a file format, a formal spec, core parsers, and editor integrations.

### 项目历史

The EditorConfig site describes the project as both a file format and a collection of editor plugins for maintaining consistent coding styles across editors and IDEs. The site repository was created in 2011, and the C core repository followed in 2012 as reusable parser and locator code for integrations.

The editorconfig-core-c README explains why the C core exists: plugin authors can share file location, INI parsing, and glob matching behavior instead of repeating that logic in every editor integration. The command-line program accepts a filename, searches for applicable .editorconfig files, and outputs the matching properties.

The formal specification later separated the format contract from individual implementations, giving package maintainers and editor authors a stable target for behavior such as section globbing, root=true search termination, supported properties, and value parsing.

### 采用历史

EditorConfig spread through both plugin ecosystems and native editor support. The official site distinguishes editors that need plugins from editors where no plugin is necessary, and it lists a wide range of IDEs, source hosts, and editors with built-in or installable support.

The format also became common in version-controlled source trees because it is intentionally readable, language-neutral, and stored beside the project code. That let teams encode indentation, line endings, final newline policy, charset, and trimming rules without requiring everyone to use the same editor.

### 使用方式

Users place a .editorconfig file in a project directory. Plugins search from the opened file upward, stop at filesystem root or a file with root=true, and apply matching sections in order so closer files can override parent settings.

The Homebrew package exposes the editorconfig CLI from editorconfig-core-c. That makes the same convention useful outside editors, including scripts, plugin development, and diagnostic checks.

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

EditorConfig is package-nerd-important because it is one of the few dotfile formats that functions as shared social infrastructure across languages, editors, IDEs, and source hosts. A tiny INI-like file reduces editor wars to a portable contract.

Its C core is also a good example of the Unix packaging pattern where a broader standard ships as a small CLI and library, letting distributions package the reference behavior while editor and tooling ecosystems build on top.

### 时间线

- 2011: Official website repository created.
- 2012: editorconfig-core-c repository created for the C core library and CLI.
- 2014: EditorConfig Core 0.11.0 adds brace expansion support, as noted in the official file-format documentation.
- 2026: editorconfig-core-c v0.12.11 published.

### Related projects

- Related official projects include the EditorConfig website, the formal spec, editorconfig-core-c, editor plugins listed on editorconfig.org, and headless-tool integrations for build systems.

### 来源

- <https://editorconfig.org/>
- <https://spec.editorconfig.org/>
- <https://docs.editorconfig.org/>
- <https://github.com/editorconfig/editorconfig-core-c>
- <https://raw.githubusercontent.com/editorconfig/editorconfig-core-c/master/README.md>
- <https://api.github.com/repos/editorconfig/editorconfig.github.com>
- <https://api.github.com/repos/editorconfig/editorconfig-core-c>
- <https://github.com/editorconfig/editorconfig-core-c/releases/tag/v0.12.11>


## 安全说明

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: .editorconfig
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** editorconfig
- **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

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

- Debian apt - editorconfig - 0.12.9+~0.17.1-1: normalized package name match | Debian stable package indexes: editorconfig from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | coding style indenter for all editors - commandline tools | https://editorconfig.org/
- Ubuntu apt - editorconfig - 0.12.7-0.1: normalized package name match | Ubuntu 24.04 LTS package indexes: editorconfig from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | coding style indenter for all editors - commandline tools | https://editorconfig.org/
- apk - editorconfig - 0.12.11-r0: normalized package name match | Alpine Linux edge package indexes: editorconfig from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | core library written in C for use by plugins supporting EditorConfig parsing | https://github.com/editorconfig/editorconfig-core-c
- apk - editorconfig-dev - 0.12.11-r0: normalized package name match | Alpine Linux edge package indexes: editorconfig-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | core library written in C for use by plugins supporting EditorConfig parsing (development files) | https://github.com/editorconfig/editorconfig-core-c
- apk - editorconfig-static - 0.12.11-r0: normalized package name match | Alpine Linux edge package indexes: editorconfig-static from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | core library written in C for use by plugins supporting EditorConfig parsing (static library) | https://github.com/editorconfig/editorconfig-core-c
- apk - libeditorconfig - 0.12.11-r0: normalized package name match | Alpine Linux edge package indexes: libeditorconfig from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | core library written in C for use by plugins supporting EditorConfig parsing (libraries) | https://github.com/editorconfig/editorconfig-core-c
- dnf - editorconfig - 0.12.11-2.fc45: normalized package name match | Fedora Rawhide package metadata: editorconfig from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Parser for EditorConfig files written in C | https://github.com/editorconfig/editorconfig-core-c
- dnf - editorconfig-devel - 0.12.11-2.fc45: normalized package name match | Fedora Rawhide package metadata: editorconfig-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Parser library for EditorConfig files (development files) | https://github.com/editorconfig/editorconfig-core-c
- dnf - editorconfig-libs - 0.12.11-2.fc45: normalized package name match | Fedora Rawhide package metadata: editorconfig-libs from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Parser library for EditorConfig files (shared library) | https://github.com/editorconfig/editorconfig-core-c
- zypper - editorconfig - 0.12.11-1.3: normalized package name match | openSUSE Tumbleweed package metadata: editorconfig from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Commandline utilities for EditorConfig | https://editorconfig.org/
- Scoop - main/editorconfig: normalized package name match | Scoop official bucket manifest trees: bucket/editorconfig.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## 相关链接

- [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.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [pcre2](https://pkg.so/zh-hans/brew/pcre2/) - Runtime dependency declared by Homebrew.
- [cmake](https://pkg.so/zh-hans/brew/cmake/) - Build dependency declared by Homebrew.
- [gnome-builder](https://pkg.so/zh-hans/brew/gnome-builder/) - Popular package that depends on this formula.
- [butane](https://pkg.so/zh-hans/brew/butane/) - Shares pkgdb curated category or tags: cli, configuration, developer-tools.
- [config-file-validator](https://pkg.so/zh-hans/brew/config-file-validator/) - Shares pkgdb curated category or tags: cli, configuration, developer-tools.
- [dynaconf](https://pkg.so/zh-hans/brew/dynaconf/) - Shares pkgdb curated category or tags: cli, configuration, developer-tools.
- [dhall-json](https://pkg.so/zh-hans/brew/dhall-json/) - Shares pkgdb curated category or tags: cli, configuration, developer-tools.
- [json2hcl](https://pkg.so/zh-hans/brew/json2hcl/) - Shares pkgdb curated category or tags: cli, configuration, developer-tools.
- [libucl](https://pkg.so/zh-hans/brew/libucl/) - Shares pkgdb curated category or tags: cli, configuration, developer-tools.
- [dhall-bash](https://pkg.so/zh-hans/brew/dhall-bash/) - Shares pkgdb curated category or tags: cli, configuration, developer-tools.
- [setconf](https://pkg.so/zh-hans/brew/setconf/) - Shares pkgdb curated category or tags: cli, configuration, developer-tools.
- [editorconfig](https://pkg.so/zh-hans/npm/editorconfig/) - Same normalized package name appears in another local ecosystem. Shared terms: cli, developer, developer-tools, editorconfig.
- [editorconfig-checker](https://pkg.so/zh-hans/brew/editorconfig-checker/) - Package names and metadata indicate a similar tool family. Shared terms: cli, developer, developer-tools, editorconfig, formatting.
- [mle](https://pkg.so/zh-hans/brew/mle/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, editor, editors.
- [editorconfig](https://pkg.so/zh-hans/npm/editorconfig/) - Same normalized package name in another local ecosystem.

## Combined YAML source

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