# Install tofrodos with Homebrew, apt, dnf

Converts DOS UNIX text files, alias tofromdos. Version 2.1.1 via Homebrew; verified 2026-04-20.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install tofrodos
```

  Evidence: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install tofrodos
```

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:tofrodos
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/tofrodos>
- **Version:** 2.1.1
- **Source summary:** Converts DOS UNIX text files, alias tofromdos
- **Homepage:** <https://github.com/ChristopherHeng/tofrodos>
- **Repository:** <https://github.com/ChristopherHeng/tofrodos>
- **Upstream docs:** <https://github.com/ChristopherHeng/tofrodos#readme>
- **License:** GPL-2.0-only
- **Source archive:** <https://github.com/ChristopherHeng/tofrodos/archive/refs/tags/2.1.1.tar.gz>
- **Last updated:** 2026-04-20T14:22:41-04:00
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- fromdos (cli)
- todos (cli)
- fromdos (alias)
- todos (alias)

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 2.1.1
- Package-manager updated: 2026-04-20
- Local data: ok
- Upstream repository: https://github.com/ChristopherHeng/tofrodos
- Upstream latest detected: 2.1.1 (current)
## Project history and usage

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

### Project history

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.

### Adoption history

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

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

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


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **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

## Other Package-Manager Records

- 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-27.fc43: normalized package name match | Fedora Rawhide package metadata: tofrodos from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Converts text files between MSDOS and Unix file formats | http://www.thefreecountry.com/tofrodos/


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [dos2unix](https://www.automicvault.com/pkg/brew/dos2unix/) - Shares av.db curated category or tags: cli, developer-tools, dos, line-endings, text-conversion.
- [gnu-sed](https://www.automicvault.com/pkg/brew/gnu-sed/) - Shares av.db curated category or tags: cli, developer-tools, text-processing, unix.
- [minised](https://www.automicvault.com/pkg/brew/minised/) - Shares av.db curated category or tags: cli, developer-tools, text-processing, unix.
- [opencc](https://www.automicvault.com/pkg/brew/opencc/) - Shares av.db curated category or tags: cli, developer-tools, text-conversion, text-processing.
- [randomize-lines](https://www.automicvault.com/pkg/brew/randomize-lines/) - Shares av.db curated category or tags: cli, developer-tools, text-processing, unix.
- [recode](https://www.automicvault.com/pkg/brew/recode/) - Shares av.db curated category or tags: cli, developer-tools, text-conversion, text-processing.
- [tal](https://www.automicvault.com/pkg/brew/tal/) - Shares av.db curated category or tags: cli, developer-tools, line-endings, text-processing.
- [vip](https://www.automicvault.com/pkg/brew/vip/) - Shares av.db curated category or tags: cli, developer-tools, text-processing, unix.
- [txt2man](https://www.automicvault.com/pkg/brew/txt2man/) - Local package facts share a topical domain. Shared terms: cli, conversion, converts, developer, developer-tools.
- [bsdconv](https://www.automicvault.com/pkg/brew/bsdconv/) - Local package facts share a topical domain. Shared terms: cli, conversion, developer, developer-tools, processing.

## Combined YAML source

View the package source record on GitHub. [combined/tofrodos.yml](https://github.com/automic-vault/db/blob/main/combined/tofrodos.yml)


## Sources

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