Automic VaultAutomic Vault

brew

thefuck を Homebrew, apk, apt, dnf, MacPorts, pacman でインストール

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

ソース経路

リポジトリデータから生成

このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。

使用ソース

  • 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