# 安装 dos2unix

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

## 安装

```sh
sudo av install brew:dos2unix
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install dos2unix
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install dos2unix
```

  证据: MacPorts ports tree: textproc/dos2unix/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add dos2unix
```

  证据: Alpine Linux edge package indexes: dos2unix from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install dos2unix
```

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

- dnf (92%):

```sh
sudo dnf install dos2unix
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#dos2unix
```

  证据: nixpkgs package indexes: pkgs/by-name/do/dos2unix/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S dos2unix
```

  证据: Arch Linux sync databases: dos2unix from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install dos2unix
```

  证据: openSUSE Tumbleweed package metadata: dos2unix from https://download.opensuse.org/tumbleweed/repo/oss/repodata/155b97171d05e27afd950b6fe0d55513ff38f4597110664535bceedc680bbe6fd459f0733718dcc21dcf0efc7c8250fd1390c73d4790b42e62fb2c16a87242e5-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install dos2unix
```

  证据: Chocolatey community package catalog: dos2unix from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','ditto.portable'

- Scoop (92%):

```sh
scoop install main/dos2unix
```

  证据: Scoop official bucket manifest trees: bucket/dos2unix.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id waterlan.dos2unix -e
```

  证据: Windows Package Manager source index: waterlan.dos2unix from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:dos2unix
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/dos2unix>
- **版本:** 7.5.5
- **来源摘要:** Convert text between DOS, UNIX, and Mac formats
- **主页:** <https://waterlan.home.xs4all.nl/dos2unix.html>
- **上游文档:** <https://waterlan.home.xs4all.nl/dos2unix.html>
- **许可证:** BSD-2-Clause
- **源码归档:** <https://waterlan.home.xs4all.nl/dos2unix/dos2unix-7.5.5.tar.gz>
- **更新:** 2026-04-07T21:11:18Z
- **生成来源:** 2026-05-26T22:45:13+00:00

## 可执行文件

- dos2unix (cli)
- mac2unix (cli)
- unix2dos (cli)
- unix2mac (cli)
- dos2unix (别名)
- mac2unix (别名)
- unix2dos (别名)
- unix2mac (别名)

## 安装行为

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

## 新鲜度

- 页面生成时间: 2026-05-26
- 管理器版本: 7.5.5
- 管理器更新时间: 2026-04-07
- 本地数据: ok
- 上游仓库: https://waterlan.home.xs4all.nl/dos2unix.html
- info: Release/tag comparison is only available for GitHub repositories.

## 安全说明

narrow executable package without higher-risk signals.

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

## 相关链接

- [cfn-flip](https://www.automicvault.com/pkg/brew/cfn-flip/) - Local package facts share a topical domain. Shared terms: between, convert, formats.
- [tofrodos](https://www.automicvault.com/pkg/brew/tofrodos/) - Local package facts share a topical domain. Shared terms: dos, text, unix.
- [any2fasta](https://www.automicvault.com/pkg/brew/any2fasta/) - Local package facts share a topical domain. Shared terms: convert, formats.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/)

## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- package version freshness
- package relationship graph
- cross-ecosystem install command graph
