# 使用 Homebrew, apt, dnf, MacPorts, Nix, pacman, zypper 安装 fatsort

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

## 安装

```sh
sudo av install brew:fatsort
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install fatsort
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install fatsort
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install fatsort
```

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

- dnf (92%):

```sh
sudo dnf install fatsort
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#fatsort
```

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

- pacman (92%):

```sh
sudo pacman -S fatsort
```

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

- zypper (92%):

```sh
sudo zypper install fatsort
```

  证据: openSUSE Tumbleweed package metadata: fatsort from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:fatsort
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/fatsort>
- **版本:** 1.7.679
- **来源摘要:** Sorts FAT16 and FAT32 partitions
- **主页:** <https://fatsort.sourceforge.io/>
- **上游文档:** <https://fatsort.sourceforge.io/>
- **许可证:** GPL-2.0-or-later
- **源码归档:** <https://downloads.sourceforge.net/project/fatsort/fatsort-1.7.679.tar.xz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- fatsort (cli)
- fatsort (别名)

## 依赖

- help2man

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.7.679
- 本地数据: OK
- 上游仓库: https://fatsort.sourceforge.io/
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

FATSort is a small C utility for sorting directory entries on FAT12, FAT16, FAT32, and exFAT filesystems. Its niche is practical rather than fashionable: it fixes the ordering seen by devices that read FAT directories in on-disk order instead of presenting their own sorted view.

### 项目历史

The official homepage says FATSort was originally written for a hardware MP3 player that did not sort MP3 files automatically, because no suitable utility existed at the time. That origin explains both the tool's narrow scope and its long maintenance life: it operates directly on filesystem directory structures rather than acting as a general file organizer.

The changelog shows a steady hardening cycle around filesystem correctness. FAT12 support appeared with the 1.0 release in 2013, exFAT support arrived in 1.6.0 in 2019, and later releases focused on endianness, locale, long-filename, multi-byte-character, and consistency checks.

### 采用历史

FATSort has remained a packaged Unix utility because its problem still appears on embedded devices, car stereos, cameras, and music players that expose FAT media. The official homepage notes inclusion in Fedora, Debian, Ubuntu, and Gentoo, which is unusually broad distribution for such a specialized filesystem tool.

### 使用方式

Typical use is direct and low-level: run `fatsort [OPTIONS] DEVICE` against an unmounted FAT filesystem or block device, choosing sort order, reverse order, random order, modification-time order, locale handling, and directory inclusion or exclusion as needed. The man page emphasizes that it sorts the filesystem directory structure itself.

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

For package-manager users, FATSort is the sort of tool that justifies a formula or distro package despite a tiny feature surface. It preserves a hardware-era workaround in a reproducible command-line form, with enough filesystem checks and portability fixes to be safer than one-off scripts.

### 时间线

- 2009: Changelog shows active 0.9.x maintenance by September 2009.
- 2013: FATSort 1.0 adds FAT12 support and stronger filesystem integrity checks.
- 2019: FATSort 1.6.0 adds exFAT support.
- 2025: FATSort 1.7 improves exFAT directory entry handling and string comparison performance.
- 2026: FATSort 1.7.1 ships bug fixes for string termination and version tests.

### Related projects

- FATSort sits beside FAT filesystem utilities rather than replacing them; it is concerned with directory-entry ordering, not formatting, checking, or repairing whole filesystems.

### 来源

- <https://fatsort.sourceforge.io/>
- <https://fatsort.sourceforge.io/fatsort.1.html>
- <https://fatsort.sourceforge.io/CHANGES.html>
- <https://sourceforge.net/p/fatsort/code>


## 安全说明

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:** fatsort
- **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 - fatsort - 1.6.5.640-1: normalized package name match | Debian stable package indexes: fatsort from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | utility for sorting FAT directory structures | https://fatsort.sourceforge.net
- Nix - fatsort: normalized package name match | nixpkgs package indexes: pkgs/by-name/fa/fatsort/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - fatsort - 1.6.4.625-0.1: normalized package name match | Ubuntu 24.04 LTS package indexes: fatsort from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | utility for sorting FAT directory structures | http://fatsort.sourceforge.net
- dnf - fatsort - 1.6.5.640-5.fc45: normalized package name match | Fedora Rawhide package metadata: fatsort from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | FAT sorter for FAT16 and FAT32 filesystems | https://fatsort.sourceforge.net/
- pacman - fatsort - 2:1.7.1.683-1: normalized package name match | Arch Linux sync databases: fatsort from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Sorts directory structures of FAT12/FAT16/FAT32/exFAT file systems | http://fatsort.sourceforge.net
- zypper - fatsort - 1.7.679-1.5: normalized package name match | openSUSE Tumbleweed package metadata: fatsort from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | FAT Filesystem Sorting Utility | https://fatsort.sourceforge.io/
- MacPorts - fatsort: normalized package name match | MacPorts ports tree: sysutils/fatsort/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Matched curated package taxonomy and local package facts.
- [help2man](https://pkg.so/zh-hans/brew/help2man/) - Runtime dependency declared by Homebrew.
- [mtools](https://pkg.so/zh-hans/brew/mtools/) - Shares pkgdb curated category or tags: cli, fat, filesystem, filesystems, system.
- [dosfstools](https://pkg.so/zh-hans/brew/dosfstools/) - Shares pkgdb curated category or tags: cli, fat, filesystem, filesystems, system.
- [attr](https://pkg.so/zh-hans/brew/attr/) - Shares pkgdb curated category or tags: cli, filesystem, filesystems, system.
- [libfuse](https://pkg.so/zh-hans/brew/libfuse/) - Shares pkgdb curated category or tags: cli, filesystem, filesystems, system.
- [dysk](https://pkg.so/zh-hans/brew/dysk/) - Shares pkgdb curated category or tags: cli, filesystem, filesystems, system.
- [e2fsprogs](https://pkg.so/zh-hans/brew/e2fsprogs/) - Shares pkgdb curated category or tags: cli, filesystem, filesystems, system.
- [dwarfs](https://pkg.so/zh-hans/brew/dwarfs/) - Shares pkgdb curated category or tags: cli, filesystem, filesystems, system.
- [erdtree](https://pkg.so/zh-hans/brew/erdtree/) - Shares pkgdb curated category or tags: cli, filesystem, filesystems, system.

## Combined YAML source

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