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

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

## 安装

```sh
sudo av install brew:fdupes
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install fdupes
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install fdupes
```

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

### Linux

- apk (92%):

```sh
sudo apk add fdupes
```

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

- Debian apt (92%):

```sh
sudo apt install fdupes
```

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

- dnf (92%):

```sh
sudo dnf install fdupes
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#fdupes
```

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

- pacman (92%):

```sh
sudo pacman -S fdupes
```

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

- zypper (92%):

```sh
sudo zypper install fdupes
```

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

## 软件包事实

- **软件包键:** brew:fdupes
- **软件包管理器:** Homebrew
- **版本:** 2.4.0
- **来源摘要:** Identify or delete duplicate files
- **主页:** <https://github.com/adrianlopezroche/fdupes>
- **仓库:** <https://github.com/adrianlopezroche/fdupes>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- fdupes (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

fdupes is a long-running command-line utility for identifying and optionally deleting duplicate files under one or more directories. It is a classic small Unix tool: give it paths, recurse if requested, compare files, print duplicate groups, and let the user decide what to remove.

### 项目历史

The official README defines fdupes as a program for identifying duplicate files in specified directories. Its CHANGES file documents an old 1.x line with features such as semi-automatic deletion, hardlink handling, no-empty-file filtering, sameline output, size summaries, and safer comparisons.

The 1.6 and 2.x lines added more automation and safety features. Version 2.0.0 introduced an ncurses mode for interactive deletion, size filters, time display, ordering controls, logging, and an autotools build system. Later releases added cache support to speed comparisons, nanosecond file-time precision where available, and more defensive deletion checks.

The current development tree warns users that the repository is a development version and recommends package-manager installs or release downloads for ordinary users. That is a very fdupes-shaped maintenance stance: the utility is small, but because it can delete data, release discipline matters.

### 采用历史

The supplied package facts show fdupes packaged by Alpine, Homebrew, Debian, Fedora/dnf, MacPorts, Nix, Arch/pacman, Ubuntu, and openSUSE/zypper. That breadth is the adoption story: duplicate-file cleanup is a universal enough need that a small C utility earned a place in most Unix-like package sets.

GitHub releases show maintained 2.x releases through 2025, while the changelog preserves the older 1.x feature history. fdupes has remained relevant because it avoids becoming a storage-management suite; it does one risky filesystem job and exposes conservative prompts and options around it.

### 使用方式

Users run fdupes against directories, commonly with --recurse to scan trees and --delete only after reviewing duplicate groups. The README explicitly warns that deletion can cause data loss in confusing symlink or repeated-directory cases, so interactive review and careful option choice are part of normal use.

The tool compares candidates efficiently by filtering and signing file contents, and modern versions can cache file signatures. It can also summarize duplicates, omit the first file in each set, preserve by ordering, and operate non-interactively when users deliberately choose that risk.

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

fdupes is one of those tiny utilities package managers keep around because it solves an admin problem without pulling in a desktop app or indexing service. It is also a good example of why mature CLI tools accrete flags: each flag encodes a real filesystem edge case someone hit.

Its significance is practical rather than fashionable. It is the package you install during disk-cleanup triage, run once, and then keep in your mental toolbox.

### 时间线

- 1.0: Earliest documented fdupes release in the official CHANGES file.
- 2014: GitHub release history includes fdupes 1.51.
- 2016: fdupes 1.6.0 adds nohidden, permissions, ordering, reverse, immediate deletion, and comparison speedups.
- 2019: fdupes 2.0.0 released with ncurses deletion mode and autotools installation.
- 2025: fdupes 2.4.0 released.

### Related projects

- Operating-system package managers are the recommended install route for normal users.
- Filesystem cleanup tools such as rdfind and jdupes occupy a similar duplicate-file niche, though they are separate projects.

### 来源

- <https://github.com/adrianlopezroche/fdupes>
- <https://raw.githubusercontent.com/adrianlopezroche/fdupes/master/README.md>
- <https://raw.githubusercontent.com/adrianlopezroche/fdupes/master/CHANGES>
- <https://raw.githubusercontent.com/adrianlopezroche/fdupes/master/INSTALL>
- <https://api.github.com/repos/adrianlopezroche/fdupes/releases>
- <https://formulae.brew.sh/formula/fdupes>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

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

- Debian apt - fdupes - 1:2.3.2-1: normalized package name match | Debian stable package indexes: fdupes from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | identifies duplicate files within given directories | https://github.com/adrianlopezroche/fdupes
- Nix - fdupes: normalized package name match | nixpkgs package indexes: pkgs/by-name/fd/fdupes/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - fdupes - 1:2.3.0-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: fdupes from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | identifies duplicate files within given directories | https://github.com/adrianlopezroche/fdupes
- apk - fdupes - 2.4.0-r0: normalized package name match | Alpine Linux edge package indexes: fdupes from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | identifying or deleting duplicate files residing within specified directories | https://github.com/adrianlopezroche/fdupes
- apk - fdupes-doc - 2.4.0-r0: normalized package name match | Alpine Linux edge package indexes: fdupes-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | identifying or deleting duplicate files residing within specified directories (documentation) | https://github.com/adrianlopezroche/fdupes
- dnf - fdupes - 2.4.0-4.fc45: normalized package name match | Fedora Rawhide package metadata: fdupes from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Finds duplicate files in a given set of directories | https://github.com/adrianlopezroche/fdupes
- pacman - fdupes - 1:2.4.0-2: normalized package name match | Arch Linux sync databases: fdupes from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | a program for identifying or deleting duplicate files residing within specified directories | https://github.com/adrianlopezroche/fdupes
- zypper - fdupes - 2.4.0-1.5: normalized package name match | openSUSE Tumbleweed package metadata: fdupes from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Tool to identify or delete duplicate files | https://github.com/adrianlopezroche/fdupes
- MacPorts - fdupes: normalized package name match | MacPorts ports tree: sysutils/fdupes/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

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