# 使用 Homebrew, dnf 安装 eg-examples

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

## 安装

```sh
sudo av install brew:eg-examples
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install eg-examples
```

  证据: local Homebrew formula metadata

### Linux

- dnf (92%):

```sh
sudo dnf install eg
```

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

## 软件包事实

- **软件包键:** brew:eg-examples
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/eg-examples>
- **版本:** 1.2.3
- **来源摘要:** Useful examples at the command-line
- **主页:** <https://github.com/srsudar/eg>
- **仓库:** <https://github.com/srsudar/eg>
- **许可证:** MIT
- **源码归档:** <https://files.pythonhosted.org/packages/dc/9b/9f254b434ed6af1e8566a398660c9f8ecada95ccf03ed799e09637a13b77/eg-1.2.3.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- eg (cli)
- eg (别名)

## 依赖

- python@3.14

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.2.3
- 本地数据: OK
- 上游仓库: https://github.com/srsudar/eg
- 信息: No package-manager update timestamp was available.
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

eg is a command-line examples browser: a companion to man pages that shows short, practical examples for common Unix commands.

### 项目历史

The srsudar/eg repository was created in 2015. Its README says the name comes from exempli gratia and positions the tool as a way to get examples for commands like find and tar without reading a full manual page.

### 采用历史

eg was packaged for both pip and Homebrew, with the Homebrew formula named eg-examples to avoid colliding with the separate Expert Guide package named eg. The README also documents running from source with a symlink to eg_exec.py.

### 使用方式

Users run eg followed by a program name, such as eg find, or run eg --list to see available example topics. Example files live as Markdown in an examples directory, and output is normally paged through less while respecting PAGER.

The tool supports custom example directories, an XDG config file at $XDG_CONFIG_HOME/eg/egrc, a legacy ~/.egrc location, color settings, squeezed output, substitutions, and custom pagers.

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

eg-examples is a neat package-manager corner case: the upstream command is simply eg, but the Homebrew package name is disambiguated because another historical terminal tool already owns the eg formula name.

### 时间线

- 2015: Public GitHub repository created.
- 2015: v1.0.0 tag appears in the upstream tag history.
- 2025: Repository still receives updates according to GitHub metadata.

### Related projects

- Related projects include man, tldr-style command examples, pager tools such as less, and the unrelated davep/eg Expert Guide reader that explains the Homebrew naming distinction.

### 来源

- <https://github.com/srsudar/eg>
- <https://raw.githubusercontent.com/srsudar/eg/master/README.md>
- <https://api.github.com/repos/srsudar/eg>
- <https://api.github.com/repos/srsudar/eg/tags?per_page=10>


## 安全说明

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: $XDG_CONFIG_HOME/eg/egrc, ~/.egrc
## 源数据库详情

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

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

- dnf - eg - 1.7.5.2-44.fc45: installed executable or alias match | Fedora Rawhide package metadata: eg from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Git for mere mortals | http://www.gnome.org/~newren/eg/


## 相关链接

- [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.
- [python@3.14](https://pkg.so/zh-hans/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [ascii](https://pkg.so/zh-hans/brew/ascii/) - Shares pkgdb curated category or tags: cli, developer-tools, reference.
- [cppman](https://pkg.so/zh-hans/brew/cppman/) - Shares pkgdb curated category or tags: cli, developer-tools, documentation, reference.
- [sphinx-doc](https://pkg.so/zh-hans/brew/sphinx-doc/) - Shares pkgdb curated category or tags: cli, developer-tools, documentation.
- [doxygen](https://pkg.so/zh-hans/brew/doxygen/) - Shares pkgdb curated category or tags: cli, developer-tools, documentation.
- [docutils](https://pkg.so/zh-hans/brew/docutils/) - Shares pkgdb curated category or tags: cli, developer-tools, documentation.
- [docbook-xsl](https://pkg.so/zh-hans/brew/docbook-xsl/) - Shares pkgdb curated category or tags: cli, developer-tools, documentation.
- [texinfo](https://pkg.so/zh-hans/brew/texinfo/) - Shares pkgdb curated category or tags: cli, developer-tools, documentation.
- [plantuml](https://pkg.so/zh-hans/brew/plantuml/) - Shares pkgdb curated category or tags: cli, developer-tools, documentation.
- [howdoi](https://pkg.so/zh-hans/brew/howdoi/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, command-line, developer, developer-tools, line.
- [adr-viewer](https://pkg.so/zh-hans/brew/adr-viewer/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, documentation, python.

## Combined YAML source

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