Simple script to grab and install the appropriate kernel RPMs

David Smith dsmith@redhat.com
Tue Nov 4 15:44:00 GMT 2008


William Cohen wrote:
> Hi All,
> 
> In an effort to make it a bit easier to install systemtap on RHEL
> machines, I have made a small script to figure out which RPMs to install
> based either on the running kernel (no arguments to script) or the
> output of "uname -r" as an argument to the script. This script is only
> designed to work on RHEL. I would like to comments on it. The plan is to
> include this in the Systemtap beginners guide to make it easier for
> people to machine setup to run systemtap.

Here's the script I've used for awhile now (as you'll see since it
supports releases back to FC5).  It isn't much different than your
script, except it also supports Fedora.  Note that it currently doesn't
handle PAE kernels, but it could be made to handle that.

-- 
David Smith
dsmith@redhat.com
Red Hat
http://www.redhat.com
256.217.0141 (direct)
256.837.0057 (fax)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: yum_kdebug.sh
Type: application/x-shellscript
Size: 1080 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/systemtap/attachments/20081104/cff5bceb/attachment.bin>


More information about the Systemtap mailing list