# 使用 Homebrew, apt, dnf 安装 tofrodos

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

## 安装

```sh
sudo av install brew:tofrodos
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install tofrodos
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install tofrodos
```

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

- dnf (92%):

```sh
sudo dnf install tofrodos
```

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

## 软件包事实

- **软件包键:** brew:tofrodos
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/tofrodos>
- **版本:** 2.1.1
- **来源摘要:** Converts DOS UNIX text files, alias tofromdos
- **主页:** <https://github.com/ChristopherHeng/tofrodos>
- **仓库:** <https://github.com/ChristopherHeng/tofrodos>
- **许可证:** GPL-2.0-only
- **源码归档:** <https://github.com/ChristopherHeng/tofrodos/archive/refs/tags/2.1.1.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- fromdos (cli)
- todos (cli)
- fromdos (别名)
- todos (别名)

## 安装行为

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

## 版本和新鲜度

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

Tofrodos is a small command-line text conversion package for moving files between DOS/Windows CRLF line endings and Unix LF line endings.

### 项目历史

The upstream README describes Tofrodos as two programs, fromdos and todos, that convert ASCII and UTF-8 text files between DOS and Unix newline formats. It is intentionally portable across Unix-like systems, Windows consoles, and DOS-family environments.

The package keeps the older Unix utility convention of behavior-by-command-name: the same program can be installed or renamed as fromdos, todos, dos2unix, or unix2dos, and it chooses the conversion direction from the invoked name.

### 采用历史

The upstream documentation points Linux users to distribution repositories, and the package record shows it available through Homebrew, Debian, Ubuntu, and Fedora/DNF.

### 使用方式

Typical use is direct shell conversion of one or more text files, wildcard batches, or pipeline use such as converting output before comparing it with diff.

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

Tofrodos matters as a tiny packaging-era compatibility utility: it solves the recurring CRLF/LF problem without pulling in a larger editor or VCS workflow, and its fromdos/todos command names are easy to script.

### 时间线

- Current: Distributed as fromdos and todos for DOS-to-Unix and Unix-to-DOS newline conversion.
- Current: Packaged by Homebrew, Debian, Ubuntu, and Fedora/DNF according to the input package-manager facts.

### Related projects

- dos2unix and unix2dos are related command names and behaviors explicitly supported by Tofrodos.
- The package belongs to the same niche as other newline-normalization tools used in cross-platform source trees.

### 来源

- <https://github.com/ChristopherHeng/tofrodos#readme>
- source_facts.package-manager


## 安全说明

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:** tofrodos
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

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

- Debian apt - tofrodos - 1.7.13+ds-6: normalized package name match | Debian stable package indexes: tofrodos from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Converts DOS <-> Unix text files, alias tofromdos | https://www.thefreecountry.com/tofrodos/index.shtml
- Ubuntu apt - tofrodos - 1.7.13+ds-6: normalized package name match | Ubuntu 24.04 LTS package indexes: tofrodos from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Converts DOS <-> Unix text files, alias tofromdos | https://www.thefreecountry.com/tofrodos/index.shtml
- dnf - tofrodos - 1.7.13-29.fc45: normalized package name match | Fedora Rawhide package metadata: tofrodos from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Converts text files between MSDOS and Unix file formats | http://www.thefreecountry.com/tofrodos/


## 相关链接

- [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.
- [dos2unix](https://pkg.so/zh-hans/brew/dos2unix/) - Shares pkgdb curated category or tags: cli, developer-tools, dos, line-endings, text-conversion.
- [txt2man](https://pkg.so/zh-hans/brew/txt2man/) - Shares pkgdb curated category or tags: cli, developer-tools, text-conversion, unix.
- [unixodbc](https://pkg.so/zh-hans/brew/unixodbc/) - Shares pkgdb curated category or tags: cli, developer-tools, unix.
- [fish](https://pkg.so/zh-hans/brew/fish/) - Shares pkgdb curated category or tags: cli, developer-tools, unix.
- [zsh](https://pkg.so/zh-hans/brew/zsh/) - Shares pkgdb curated category or tags: cli, developer-tools, unix.
- [gnu-sed](https://pkg.so/zh-hans/brew/gnu-sed/) - Shares pkgdb curated category or tags: cli, developer-tools, unix.
- [moreutils](https://pkg.so/zh-hans/brew/moreutils/) - Shares pkgdb curated category or tags: cli, developer-tools, unix.
- [ed](https://pkg.so/zh-hans/brew/ed/) - Shares pkgdb curated category or tags: cli, developer-tools, unix.
- [csvprintf](https://pkg.so/zh-hans/brew/csvprintf/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, files, line.
- [recode](https://pkg.so/zh-hans/brew/recode/) - Local package facts share a topical domain. Shared terms: cli, conversion, developer, developer-tools, text.

## Combined YAML source

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