Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, dnf, MacPorts, pacman 安装 thefuck

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install thefuck

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install thefuck

MacPorts ports tree · python/thefuck/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add thefuck

Alpine Linux edge package indexes · thefuck · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install thefuck

Debian stable package indexes · thefuck · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install thefuck

Fedora Rawhide package metadata · thefuck · 来源: dl.fedoraproject.org

Arch Linux pacman已验证 · 92%
sudo pacman -S thefuck

Arch Linux sync databases · thefuck · 来源: geo.mirror.pkgbuild.com

概览

软件包摘要

Programmatically correct mistyped console commands

命令和别名

  • fuck
  • thefuck

历史

项目历史与用法

The Fuck is a Python command-line utility for correcting a previously failed shell command. Its official README presents it as an app inspired by a tweet and built around the `fuck` alias, which lets a user rerun a corrected version of the last command after errors such as missing `sudo`, misspelled Git subcommands, command-not-found typos, or bad package-manager invocations.

项目历史

The project grew around a rules engine: the README says it matches the previous command against enabled rules, creates a replacement command, and executes it after confirmation. The rule list spans common developer and system tools, including package managers, Git, Docker, language toolchains, shells, and file utilities, making the project less a spelling corrector than a catalog of everyday terminal failure modes.

采用历史

The Fuck became unusually visible for a shell helper: the official GitHub page shows tens of thousands of stars and thousands of forks, while the assigned package facts list packages across Homebrew, Debian, Ubuntu, Fedora, Arch, Alpine, MacPorts, and other ecosystems. Its README also documents installation through Homebrew, FreeBSD packages, Chromebrew, Arch packages, and pip, which reflects the tool's spread through both language and OS package-manager culture.

使用方式

The normal workflow is to install the package, add `eval $(thefuck --alias)` to a shell startup file, run a command that fails, and then type the alias to accept or select a corrected command. The README also documents options such as running without confirmation, recursively retrying fixes, customizing rules in `settings.py`, and using environment variables to tune behavior.

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

For package nerds, The Fuck is interesting because many of its examples and built-in rules encode package-manager ergonomics: it can add `sudo` for `apt-get`, correct Chocolatey package suffixes, fix Homebrew- and system-tool-adjacent command mistakes, and turn common install-time errors into repeatable command rewrites. It is also a good example of a package whose memorable command name helped it become a cross-distro terminal utility.

时间线

  • 2017: GitHub tags page shows the 3.23 release.
  • 2018: GitHub tags page shows multiple 3.x releases, including 3.26 through 3.28.
  • 2022: GitHub tags page shows release 3.32.
  • Current README: documents package-manager installation, shell alias setup, rule-based correction, settings.py, and environment-variable configuration.

Related projects

  • Related tools in the same terminal-productivity niche include shell history search, command-not-found helpers, package-manager suggestion tools, and shell frameworks that add aliases or completions. The Fuck differs by taking the previous failed command and proposing a runnable replacement.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 1 个运行时依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

Unix
~/.config/thefuck/settings.py

可执行文件

已安装的可执行文件

命令类型暴露范围备注
fuckcli全局可执行文件
thefuckcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-26
管理器版本3.32
管理器更新时间2026-07-14
本地数据OK
上游not checked
检测到的最新版本未检测到

https://github.com/nvbn/thefuck

安装元数据

软件包元数据

软件包键brew:thefuck
版本3.32
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/thefuck
主页https://github.com/nvbn/thefuck
仓库https://github.com/nvbn/thefuck
上游文档https://github.com/nvbn/thefuck#readme
许可证MIT
源码归档https://files.pythonhosted.org/packages/ac/d0/0c256afd3ba1d05882154d16aa0685018f21c60a6769a496558da7d9d8f1/thefuck-3.32.tar.gz
最后更新2026-07-14T17:14:18+09:00
Pulseupdated
依赖python@3.14
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明
注意事项Add the following to your .bash_profile, .bashrc or .zshrc: eval $(thefuck --alias) For other shells, check https://github.com/nvbn/thefuck/wiki/Shell-aliases

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namethefuck
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

thefuck 3.32-0.3

spelling corrector of console commands

https://github.com/nvbn/thefuck

sudo apt install thefuck
  • Section: python
  • Architecture: all
  • 8 依赖
  • normalized package name match
  • 匹配方式:Thefuck
Debian stable package indexes · deb.debian.org · Debian stable package indexes: thefuck from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Ubuntu apt95%

thefuck 3.29-0.3ubuntu1

spelling corrector of console commands

https://github.com/nvbn/thefuck

sudo apt install thefuck
  • Section: universe/python
  • Architecture: all
  • 7 依赖
  • normalized package name match
  • 匹配方式:Thefuck
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: thefuck from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

thefuck 3.32-r6

The Fuck is a magnificent app that corrects errors in previous console commands.

https://github.com/nvbn/thefuck

sudo apk add thefuck
  • License: MIT
  • Architecture: x86_64
  • Source Package: thefuck
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Thefuck
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: thefuck from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk95%

thefuck-pyc 3.32-r6

Precompiled Python bytecode for thefuck

https://github.com/nvbn/thefuck

sudo apk add thefuck-pyc
  • License: MIT
  • Architecture: x86_64
  • Source Package: thefuck
  • 1 依赖
  • normalized package name match
  • 匹配方式:Thefuck
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: thefuck-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
dnf95%

thefuck 3.32-20.fc44

App that corrects your previous console command

https://github.com/nvbn/thefuck

sudo dnf install thefuck
  • License: MIT
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: thefuck
  • 3 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式:Thefuck
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: thefuck from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

thefuck 3.32-12

Magnificent app which corrects your previous console command

https://github.com/nvbn/thefuck

sudo pacman -S thefuck
  • License: MIT
  • Architecture: any
  • 6 依赖
  • normalized package name match
  • 匹配方式:Thefuck
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: thefuck from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
MacPorts95%

thefuck

sudo port install thefuck
  • normalized package name match
  • 匹配方式:Thefuck
MacPorts ports tree · api.github.com · MacPorts ports tree: python/thefuck/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

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