# 使用 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

## 软件包事实

- **软件包键:** brew:tofrodos
- **软件包管理器:** Homebrew
- **版本:** 2.1.1
- **来源摘要:** Converts DOS UNIX text files, alias tofromdos
- **主页:** <https://github.com/ChristopherHeng/tofrodos>
- **仓库:** <https://github.com/ChristopherHeng/tofrodos>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

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

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 2.1.1
## 项目历史与用法

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

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

- 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Converts text files between MSDOS and Unix file formats | http://www.thefreecountry.com/tofrodos/


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
