You are not logged in.

#1 2022-12-09 17:16:38

telometto
Member
From: Braunau
Registered: 2020-09-30
Posts: 23

[SOLVED] If command doesn't exist, install the package that provides i

On Fedora, they have a nifty feature that if a command you're trying to run doesn't exist, it will tell you that the command is not found and proceeds to ask you if you'd like to install the package that provides it; if I'm not mistaken, it's provided by dnf-utils or dnf-plugins-core.
Does Arch have anything similar?

Last edited by telometto (2022-12-10 11:06:27)


"Concern should drive us to action and not into depression."
    -- Pythagoras

Offline

#2 2022-12-09 17:20:52

Zod
Member
From: Hoosiertucky
Registered: 2019-03-10
Posts: 636

Re: [SOLVED] If command doesn't exist, install the package that provides i

Offline

#3 2022-12-09 18:00:15

Pyntux
Member
From: Serbia
Registered: 2008-12-21
Posts: 415

Re: [SOLVED] If command doesn't exist, install the package that provides i

@Zod

Nice, thank you!


I do not speak English, but I understand...

Offline

#4 2022-12-09 19:57:38

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,480
Website

Re: [SOLVED] If command doesn't exist, install the package that provides i

Note `pacman -F` can now be used with no need for pkgfile.  Though I don't know if there are readily available command-not-found handlers for major shells - they'd be easy to write though.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2022-12-09 21:45:17

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] If command doesn't exist, install the package that provides i


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#6 2022-12-10 11:03:55

telometto
Member
From: Braunau
Registered: 2020-09-30
Posts: 23

Re: [SOLVED] If command doesn't exist, install the package that provides i

Worked a charm. Thanks!


"Concern should drive us to action and not into depression."
    -- Pythagoras

Offline

Board footer

Powered by FluxBB