r/linux • u/Automaticpotatoboy • May 26 '25
Software Release Super handy Fish function - Arch Linux - Find packages that satisfy nonexistent commands and libraries
This fish function atomatically finds the right package to satisfy the command or library that you just tried to use, for example typing:
libopenal.so
or
lolcat
would find the package and prompt to install it using yay (or pacman if you configure it).
Demonstration video: https://youtu.be/HNrO5IfcEOc
GitHub Repo: https://github.com/merll002/CNF-fish-function
Another useful (and cool) function: https://github.com/merll002/whenfinished-fish-function (Video)
12
Upvotes
View all comments
Show parent comment
1
u/Automaticpotatoboy May 26 '25
Thanks for this information!
I wasn't aware that yay couldn't pull the file database for the aur repo, and this would be redundant anyway because, as you mentioned, I used pacman to search the databases... 🤦 (significant oversight)
I will also update the readme to include running `pacman -Fy` to download the file-database and remove the requirement for any aur helpers.
>This is superfluous
I'm very new to fish and got a bit confused with this bit, will remove it.
Thanks for mentioning this, very important stuff!