Install package 'xxx' to provide command 'xxx'? [N/y]

It’s possibly something I have installed, but I think it’s there out of the box.

What’s this tool that find out if a program isn’t installed and propose to install it?

cirelli@fedora:~$ delta
bash: delta: command not found...
Install package 'git-delta' to provide command 'delta'? [N/y]

How can capture a missing command, it’s a bash/zsh “plugin”?
How is it possible that this is done without any history in dnf?
How is it possible that this run without sudo?

Thanks!

2 Likes

PackageKit-command-not-found - Fedora Packages

PackageKit/contrib/command-not-found/PackageKit.sh.in at main · PackageKit/PackageKit · GitHub

DNF and PackageKit store caches and data separately.

Polkit - Wikipedia

3 Likes

Excellent answer, thank you so much!

2 Likes