You are viewing illiterat

James Antill - A few things you might not know about RHEL-6.1+ yum

May. 19th, 2011

02:02 pm - A few things you might not know about RHEL-6.1+ yum

Previous Entry Share Next Entry

Comments:

[User Picture]
From:illiterat
Date:May 24th, 2011 05:05 pm (UTC)

Re: provides == fileprovides?

(Link)
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.
From:(Anonymous)
Date:June 8th, 2011 10:48 pm (UTC)

Re: provides == fileprovides?

(Link)
A two-fold search is definitely the cleanest way to go!

Great job!
Looking forward to it!