# 使用 Homebrew, dnf 安装 src

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

## 安装

```sh
sudo av install brew:src
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install src
```

  证据: local Homebrew formula metadata

### Linux

- dnf (92%):

```sh
sudo dnf install src
```

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

## 软件包事实

- **软件包键:** brew:src
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/src>
- **版本:** 1.45
- **来源摘要:** Simple revision control: RCS reloaded with a modern UI
- **主页:** <http://www.catb.org/~esr/src/>
- **上游文档:** <http://www.catb.org/~esr/src/>
- **许可证:** BSD-2-Clause
- **源码归档:** <https://gitlab.com/esr/src/-/archive/1.45/src-1.45.tar.bz2>
- **最后更新:** 2026-05-20T15:38:01Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- src (cli)
- src (别名)

## 依赖

- rcs

## 构建依赖

- asciidoctor

## macOS 提供的库

- python

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.45
- 管理器更新时间: 2026-05-20
- 本地数据: OK
- 上游仓库: http://www.catb.org/~esr/src/
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

`src` is Eric S. Raymond's simple revision-control tool for solo, single-file projects. It wraps old RCS and SCCS storage ideas in a more modern command-line interface for people who want version history for loose scripts, HOWTOs, and small files without creating a full Git repository.

### 项目历史

The official manual describes SRC as simple revision control for single-file projects by solo developers and authors, explicitly calling it a modernization of RCS. The FAQ frames the tool as a response to modern VCS tools that are powerful for multi-user, multi-file projects but awkward for small private files.

SRC is built on top of RCS rather than reimplementing RCS master-file internals. It can also operate on SCCS repositories, mostly for legacy compatibility, while its default storage directory is `.src`.

### 采用历史

The package metadata in this batch shows `src` available through Homebrew and Fedora/DNF. That is a modest but meaningful packaging footprint for a niche developer tool: it is not trying to replace Git, but package managers make it easy to install alongside RCS for the narrow single-file use case.

### 使用方式

Typical use is deliberately small: initialize a directory, commit one or more files, inspect status and logs, and retrieve previous revisions. The manual documents RCS/SCCS interoperability, import from RCS or SCCS directories, and commands shaped to feel familiar to Subversion, Mercurial, and Git users.

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

`src` is interesting to package nerds because it is a compatibility-layer package around very old Unix version-control machinery. It preserves the single-file workflow that RCS was good at while exposing a friendlier CLI, so the packaging question is less about ecosystem size and more about keeping a classic Unix niche installable.

### 时间线

- 1970s-1980s: SCCS and RCS established the single-file version-control lineage that SRC later wraps.
- 2010s: SRC 1.x series published with a public GitLab repository and CATB-hosted documentation.
- 2020s: SRC documentation continues to describe RCS as the recommended backend and SCCS as legacy support.

### Related projects

- SRC is directly related to RCS and SCCS, and its FAQ compares its command style with Subversion, Mercurial, and Git.

### 来源

- <http://www.catb.org/~esr/src/FAQ.html>
- <http://www.catb.org/~esr/src/src.html>
- <https://gitlab.com/esr/src>
- source_facts.package-manager


## 安全说明

没有找到 src 的匹配本地密钥处理 manifest。软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

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

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

- dnf - src - 1.38-6.fc45: normalized package name match | Fedora Rawhide package metadata: src from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Simple Revision Control | https://gitlab.com/esr/src


## 相关链接

- [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.
- [rcs](https://pkg.so/zh-hans/brew/rcs/) - Runtime dependency declared by Homebrew.
- [asciidoctor](https://pkg.so/zh-hans/brew/asciidoctor/) - Build dependency declared by Homebrew.
- [cvs-fast-export](https://pkg.so/zh-hans/brew/cvs-fast-export/) - Shares pkgdb curated category or tags: cli, developer-tools, rcs, version-control.
- [git](https://pkg.so/zh-hans/brew/git/) - Shares pkgdb curated category or tags: cli, developer-tools, version-control.
- [libgit2](https://pkg.so/zh-hans/brew/libgit2/) - Shares pkgdb curated category or tags: cli, developer-tools, version-control.
- [git-lfs](https://pkg.so/zh-hans/brew/git-lfs/) - Shares pkgdb curated category or tags: cli, developer-tools, version-control.
- [lazygit](https://pkg.so/zh-hans/brew/lazygit/) - Shares pkgdb curated category or tags: cli, developer-tools, version-control.
- [subversion](https://pkg.so/zh-hans/brew/subversion/) - Shares pkgdb curated category or tags: cli, developer-tools, version-control.
- [git-gui](https://pkg.so/zh-hans/brew/git-gui/) - Shares pkgdb curated category or tags: cli, developer-tools, version-control.
- [jj](https://pkg.so/zh-hans/brew/jj/) - Shares pkgdb curated category or tags: cli, developer-tools, version-control.
- [reposurgeon](https://pkg.so/zh-hans/brew/reposurgeon/) - Local package facts share a topical domain. Shared terms: cli, control, developer, developer-tools, version.

## Combined YAML source

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


## 来源

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