Simple script to grab and install the appropriate kernel RPMs

William Cohen wcohen@redhat.com
Tue Nov 4 18:35:00 GMT 2008


David Smith wrote:
> William Cohen wrote:
>> David Smith wrote:
>>> William Cohen wrote:
> 
>> Thanks, David for the script. Did you try to use the yum_kdebug.sh
>> script for cross compiling examples? I noticed when trying to use "yum
>> install" that yum would complain about installing kernels older than the
>> currently installed kernel.
> 
> I've never seen yum complain about installing kernel debuginfo for older
> kernels, but I also doubt I've done that operation much.  I might have a
> vague memory of that happening, if so I would have just removed the
> newer debuginfo by hand and run the script again.
> 
>> I would like to revise the stapprep.sh scrip to handle fedora repos
>> correctly. There is the DEBUGINFOREPO variable that should be set
>> appropriate for the various fedoras.
> 
> BTW, there is really no point in my keeping the older fc5/fc6 stuff in
> my script,  I just haven't bothered taking it out.
> 
> You can certainly see how I'm handling the fedora repos by looking at my
> script.
> 

Hi David,

I found that wildcard matching works for the --enablerepos, so I made a tweak so 
that it matches all debuginfo repos. The explicit version specified in rpm 
should avoid trying to pull in every possible kernel-devel, kernel-debuginfo 
rpm. The script works for fedora machines now with the bonus that the script is 
one line shorter. :) I did a git push so the script is available from the git repo.

-Will



More information about the Systemtap mailing list