macOS
brew install dos2unixlocal Homebrew formula metadata
sudo port install dos2unixMacPorts ports tree · textproc/dos2unix/Portfile · ソース: api.github.com
brew
dos2unix のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。
インストール
brew install dos2unixlocal Homebrew formula metadata
sudo port install dos2unixMacPorts ports tree · textproc/dos2unix/Portfile · ソース: api.github.com
sudo apk add dos2unixAlpine Linux edge package indexes · dos2unix · ソース: dl-cdn.alpinelinux.org
sudo apt install dos2unixDebian stable package indexes · dos2unix · ソース: deb.debian.org
sudo dnf install dos2unixFedora Rawhide package metadata · dos2unix · ソース: dl.fedoraproject.org
nix profile install nixpkgs#dos2unixnixpkgs package indexes · pkgs/by-name/do/dos2unix/package.nix · ソース: api.github.com
sudo pacman -S dos2unixArch Linux sync databases · dos2unix · ソース: geo.mirror.pkgbuild.com
sudo zypper install dos2unixopenSUSE Tumbleweed package metadata · dos2unix · ソース: download.opensuse.org
choco install dos2unixChocolatey community package catalog · dos2unix · ソース: community.chocolatey.org
scoop install main/dos2unixScoop official bucket manifest trees · bucket/dos2unix.json · ソース: api.github.com
winget install --id waterlan.dos2unix -eWindows Package Manager source index · waterlan.dos2unix · ソース: cdn.winget.microsoft.com
概要
Convert text between DOS, UNIX, and Mac formats
履歴
dos2unix is the long-running command-line utility family for converting plain-text line endings among DOS/Windows CRLF, Unix LF, and classic Mac CR formats. Its package-nerd appeal is that it solves one of the oldest cross-platform source-tree annoyances with tiny, scriptable tools that became familiar on Unix, Linux, Windows, DOS, Cygwin, and OS/2.
The current dos2unix package is an Erwin Waterlander-maintained update of Benjamin Lin's dos2unix and unix2dos implementations. The official history traces the lineage back to John Birchfield's 1989 versions, Benjamin Lin's 1995 rewrite, Bernd Johannes Wuebben's 1998 Mac-to-Unix addition, and Waterlander's 2010 Unix-to-Mac addition.
The Waterlander package bundled the formerly separate dos2unix and unix2dos packages into a single dos2unix release at version 5.0 in 2010. Later milestones included UTF-16 support in version 6.0 in 2012 and a major cleanup plus test suite in version 7.0 in 2014.
Benjamin Lin's implementations were distributed through SunSITE.unc.edu, later MetaLab and ibiblio, and became part of Linux distributions including Red Hat, SUSE, Gentoo, and others. The Homebrew source facts also list broad packaging across apk, Debian, Fedora, MacPorts, Nix, pacman, Scoop, Ubuntu, winget, and zypper.
The official homepage continues to publish source archives and ready-to-run binaries for DOS, Windows, and OS/2 alongside Unix-style documentation, reflecting a tool whose user base spans old and modern operating systems.
The package includes dos2unix, unix2dos, mac2unix, and unix2mac commands. It is commonly used in source checkouts, release scripts, build systems, and data-cleanup pipelines when files cross Windows and Unix-like environments.
Modern dos2unix does more than swap CRLF and LF: official documentation covers in-place and paired conversion modes, binary-file skipping, symbolic-link behavior, Unicode UTF-16 to UTF-8 conversion, byte-order-mark handling, recursive conversion recipes, and translated manuals.
dos2unix is a classic small package that persists because text line endings remain a real interoperability boundary. Package maintainers care about it because it is tiny, has no credential or daemon surface, and shows up wherever archives, generated files, or vendored code cross platform conventions.
Its significance is also historical: it preserves SunOS/Solaris-style behavior while adjusting defaults for practical Unix packaging, such as in-place conversion by default in this implementation.
セキュリティ状態
narrow executable package without higher-risk signals.
リスク グリーン · 信頼度 低 · appliance
エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。
実行可能ファイル
| コマンド | 種類 | 公開範囲 | メモ |
|---|---|---|---|
dos2unix | cli | グローバル実行可能ファイル | |
mac2unix | cli | グローバル実行可能ファイル | |
unix2dos | cli | グローバル実行可能ファイル | |
unix2mac | cli | グローバル実行可能ファイル |
鮮度
これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。
https://waterlander.net/dos2unix/
インストールメタデータ
| パッケージキー | brew:dos2unix |
|---|---|
| バージョン | 7.5.6 |
| パッケージマネージャ | Homebrew |
| パッケージマネージャページ | https://formulae.brew.sh/formula/dos2unix |
| ホームページ | https://waterlander.net/dos2unix/ |
| リポジトリ | https://git.code.sf.net/p/dos2unix/dos2unix |
| 上流ドキュメント | https://dos2unix.sourceforge.io/dos2unix/man1/dos2unix.htm |
| ライセンス | BSD-2-Clause |
| ソースアーカイブ | https://waterlander.net/dos2unix/files/dos2unix-7.5.6.tar.gz |
| 最終更新 | 2026-06-27T04:30:36Z |
| Pulse | updated |
| Bottle | 利用可能 (対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定義 |
| サービス | 宣言なし |
レジストリ情報
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | dos2unix |
| Aliases |
|
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
ソースデータベース一致
一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。
dos2unix 7.5.2-1
convert text file line endings between CRLF and LF
https://waterlan.home.xs4all.nl/dos2unix.html
sudo apt install dos2unixdos2unix
nix profile install nixpkgs#dos2unixdos2unix 7.5.1-1
convert text file line endings between CRLF and LF
https://waterlan.home.xs4all.nl/dos2unix.html
sudo apt install dos2unixdos2unix 7.5.5-r0
Text file format converters
https://waterlan.home.xs4all.nl/dos2unix.html
sudo apk add dos2unixdos2unix-doc 7.5.5-r0
Text file format converters (documentation)
https://waterlan.home.xs4all.nl/dos2unix.html
sudo apk add dos2unix-docdos2unix 7.5.5-1.fc45
Text file format converters
https://waterlan.home.xs4all.nl/dos2unix.html
sudo dnf install dos2unixdos2unix 7.5.6-1
Text file format converter
https://waterlan.home.xs4all.nl/dos2unix.html
sudo pacman -S dos2unixdos2unix 7.5.6-1.1
Text converters to and from DOS/MAC to UNIX
https://waterlander.net/dos2unix/
sudo zypper install dos2unixdos2unix
sudo port install dos2unixdos2unix
choco install dos2unixmain/dos2unix
scoop install main/dos2unixwaterlan.dos2unix
winget install --id waterlan.dos2unix -eソース経路
このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。
View the package source record on GitHub.