Post a comment - James Antill
May. 24th, 2011
05:05 pm - Re: provides == fileprovides?
I guess we're just exposed to different demographics then, because I've never seen anyone use it for anything else, myself included.
So I ran yum provides "*/matplotlib" to find out which package I need to install. But in general, any app that fails to find a file for any particular reason tends to push me in the direction of yum provides, whether it's a missing shared object or a config or similar file that something looks for at run time.
So I just added:
...which looks for "commands" and python modules, if the "normal" provides lookup fails. This is fast enough, I doubt anyone will care (although it might trigger filelists downloads). Adding more sources is possible (Eg. /etc), if you have a need for them (and we can do it easily -- adding "perl"/"ruby"/etc. might be useful, but I'm not sure how easy it would be).
Worst case we could even have a configurable list of directories.