You are not logged in.
Hello
Its been 2-3 weeks since i shifted to arch from Ubuntu and I love it
One doubt tho
sometimes i make scripts and try to come up names that are not already taken
in ubuntu I had to type a command and it shows exactly what package it is from , if the package isn't installed
but in arch it just says command not found
Is there any package from AUR that does this?
Last edited by si67 (2020-09-14 11:05:56)
Offline
For the Arch Linux version of this, see:
https://wiki.archlinux.org/index.php/Pkgfile
https://wiki.archlinux.org/index.php/Ba … _not_found
Managing AUR repos The Right Way -- aurpublish (now a standalone tool)
Offline
Sync and download database
# pacman -Fy
Search pattern for a command
# pacman -F gimp
Offline
solskog, this is NOT the same thing at all. The OP specifically wants a hook for bash's command_not_found_handle.
Managing AUR repos The Right Way -- aurpublish (now a standalone tool)
Offline
Thanks for the answers
Offline
solskog, this is NOT the same thing at all. The OP specifically wants a hook for bash's command_not_found_handle.
Yes, but it is a bit of an XY question. The OP was just (ab)using ubuntus command not found handler as a means of checking whether a given filename existed in the repos. The pacman -F approach is a direct solution to the goal rather than instructions on how to acheive the Y of the XY.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline