macOS
brew install thefucklocal Homebrew formula metadata
sudo port install thefuckMacPorts ports tree · python/thefuck/Portfile · source: api.github.com
brew
Programmatically correct mistyped console commands. Version 3.32 via Homebrew; verified from local package data.
install
brew install thefucklocal Homebrew formula metadata
sudo port install thefuckMacPorts ports tree · python/thefuck/Portfile · source: api.github.com
sudo apk add thefuckAlpine Linux edge package indexes · thefuck · source: dl-cdn.alpinelinux.org
sudo apt install thefuckDebian stable package indexes · thefuck · source: deb.debian.org
sudo dnf install thefuckFedora Rawhide package metadata · thefuck · source: dl.fedoraproject.org
sudo pacman -S thefuckArch Linux sync databases · thefuck · source: geo.mirror.pkgbuild.com
overview
Programmatically correct mistyped console commands
history
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.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
local files
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.
Config paths the tool may read or write during local use.
~/.config/thefuck/settings.pyexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
fuck | cli | global executable | |
thefuck | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/nvbn/thefuck
install metadata
| Package key | brew:thefuck |
|---|---|
| Version | 3.32 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/thefuck |
| Homepage | https://github.com/nvbn/thefuck |
| Repository | https://github.com/nvbn/thefuck |
| Upstream docs | https://github.com/nvbn/thefuck#readme |
| License | MIT |
| Source archive | https://files.pythonhosted.org/packages/ac/d0/0c256afd3ba1d05882154d16aa0685018f21c60a6769a496558da7d9d8f1/thefuck-3.32.tar.gz |
| Dependencies | python@3.14 |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
| Caveats | 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 |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | thefuck |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
thefuck 3.32-0.3
spelling corrector of console commands
https://github.com/nvbn/thefuck
sudo apt install thefuckthefuck 3.29-0.3ubuntu1
spelling corrector of console commands
https://github.com/nvbn/thefuck
sudo apt install thefuckthefuck 3.32-r6
The Fuck is a magnificent app that corrects errors in previous console commands.
https://github.com/nvbn/thefuck
sudo apk add thefuckthefuck-pyc 3.32-r6
Precompiled Python bytecode for thefuck
https://github.com/nvbn/thefuck
sudo apk add thefuck-pycthefuck 3.32-20.fc44
App that corrects your previous console command
https://github.com/nvbn/thefuck
sudo dnf install thefuckthefuck 3.32-12
Magnificent app which corrects your previous console command
https://github.com/nvbn/thefuck
sudo pacman -S thefuckthefuck
sudo port install thefucksource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.