command-not-found on AUR (Arch User Repository)

Last updated: December 27,2024

1. Install "command-not-found" effortlessly via AUR with the help of a helper(YAY)

a. Install YAY (https://github.com/Jguer/yay)

$ sudo pacman -S --needed git base-devel && git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -si

b. Install command-not-found on Arch using YAY

$ yay -S command-not-found

* (Optional) Uninstall command-not-found on Arch using YAY

$ yay -Rns command-not-found

2. Manually Install "command-not-found" via AUR

a. Ensure you have the base development tools and git installed with:

$ sudo pacman -S --needed base-devel git

b. Clone command-not-found's git locally

$ git clone https://aur.archlinux.org/command-not-found.git ~/command-not-found

c. Go to ~/command-not-found folder and install it

$ cd ~/command-not-found $ makepkg -si

3. Information about the command-not-found package on Arch User Repository (AUR)

ID: 608127
Name: command-not-found
PackageBaseID: 52305
PackageBase: command-not-found
Version: 0.6.2-2
Description: In case a command could not be found this utility searches for packages containing this or a similar command (bash,zsh).
URL: http://github.com/metti/command-not-found
NumVotes: 192
Popularity: 0.000915
OutOfDate: 1561899280
Maintainer: oberon2007
FirstSubmitted: 1315694543
LastModified: 1556565699
URLPath: /cgit/aur.git/snapshot/command-not-found.tar.gz