You are viewing illiterat

James Antill - Post a comment

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.
Fair enough.
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: http://yum.baseurl.org/gitweb?p=yum.git;a=commitdiff;h=6756b86f33f5173a035671ae748f61a1192eef1a ...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.

Leave a comment:

No HTML allowed in subject

  
 
   
 

Notice! This user has turned on the option that logs your IP address when posting. 

(will be screened)