Skip to content
Nils K edited this page Jul 1, 2021 · 27 revisions

Generic way

You need to install requirements:

  • pip
  • python
  • python-dev (or python-devel on some distros: Fedora, CentOS)

And then install thefuck with pip:

sudo -H pip install thefuck

OS X

brew install thefuck

or

sudo easy_install thefuck

or

sudo port install thefuck

Ubuntu

❗ Do not use sudo easy_install pip, it does not work on Ubuntu.

sudo apt install thefuck
# or to get the newest version
sudo apt install python3-dev python3-pip python3-setuptools
sudo pip3 install thefuck

Arch

sudo pacman -S thefuck

Fedora

sudo dnf install thefuck
# or to get the newest version
sudo dnf install python-pip python-devel
sudo pip install thefuck

Gentoo

sudo emerge --ask app-shells/thefuck

OpenSUSE

sudo zypper in python3 python3-devel
sudo pip install thefuck

Void Linux

sudo xbps-install thefuck

fuck is available!

Clone this wiki locally