267 lines
4.0 KiB
HTML
267 lines
4.0 KiB
HTML
<HTML
|
|
><HEAD
|
|
><TITLE
|
|
>Upgrading a Red Hat Stock Kernel</TITLE
|
|
><META
|
|
NAME="GENERATOR"
|
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.63
|
|
"><LINK
|
|
REL="HOME"
|
|
TITLE="Linux Administration Made Easy"
|
|
HREF="index.html"><LINK
|
|
REL="UP"
|
|
TITLE="Upgrading Linux and Other Applications"
|
|
HREF="upgrading-linux.html"><LINK
|
|
REL="PREVIOUS"
|
|
TITLE="Linux Kernel Upgrades"
|
|
HREF="linux-kernel-upgrades.html"><LINK
|
|
REL="NEXT"
|
|
TITLE="Building a Custom Kernel"
|
|
HREF="kernel-custom.html"></HEAD
|
|
><BODY
|
|
CLASS="SECT1"
|
|
BGCOLOR="#FFFFFF"
|
|
TEXT="#000000"
|
|
LINK="#0000FF"
|
|
VLINK="#840084"
|
|
ALINK="#0000FF"
|
|
><DIV
|
|
CLASS="NAVHEADER"
|
|
><TABLE
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TH
|
|
COLSPAN="3"
|
|
ALIGN="center"
|
|
>Linux Administration Made Easy</TH
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="left"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="linux-kernel-upgrades.html"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="80%"
|
|
ALIGN="center"
|
|
VALIGN="bottom"
|
|
>Chapter 10. Upgrading Linux and Other Applications</TD
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="right"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="kernel-custom.html"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"></DIV
|
|
><DIV
|
|
CLASS="SECT1"
|
|
><H1
|
|
CLASS="SECT1"
|
|
><A
|
|
NAME="KERNEL-UPGRADE"
|
|
>10.5. Upgrading a Red Hat Stock Kernel</A
|
|
></H1
|
|
><P
|
|
>By far the easiest way of upgrading your kernel is to do so using a
|
|
stock kernel RPM as provided by Red Hat. These RPM files contain
|
|
pre-compiled binary kernel code, with support for a large variety of
|
|
hardware and popular features.</P
|
|
><P
|
|
>Installing a stock kernel is easy to do and involves little risk.
|
|
Simply type, as root, the following sequence of commands:</P
|
|
><TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><PRE
|
|
CLASS="SCREEN"
|
|
><TT
|
|
CLASS="USERINPUT"
|
|
><B
|
|
>rpm -Uvh kernel-2.0.36.i386.rpm</B
|
|
></TT
|
|
>
|
|
<TT
|
|
CLASS="USERINPUT"
|
|
><B
|
|
>cd /boot</B
|
|
></TT
|
|
>
|
|
<TT
|
|
CLASS="USERINPUT"
|
|
><B
|
|
>ls</B
|
|
></TT
|
|
></PRE
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><P
|
|
>Make note of the new kernel name, as reported by the
|
|
``<TT
|
|
CLASS="LITERAL"
|
|
>ls</TT
|
|
>'' command above. You are interested in the
|
|
``<TT
|
|
CLASS="LITERAL"
|
|
><TT
|
|
CLASS="FILENAME"
|
|
>vmlinuz</TT
|
|
></TT
|
|
>'' file; for example the
|
|
third RPM release of kernel 2.0.36 would look like
|
|
``<TT
|
|
CLASS="LITERAL"
|
|
><TT
|
|
CLASS="FILENAME"
|
|
>vmlinuz-2.0.36-3</TT
|
|
></TT
|
|
>''.</P
|
|
><P
|
|
>Now, use an editor to edit the LILO configuation file (type:
|
|
``<TT
|
|
CLASS="LITERAL"
|
|
>pico -w /etc/lilo.conf</TT
|
|
>'') and change the
|
|
``<TT
|
|
CLASS="LITERAL"
|
|
>image=/boot/...</TT
|
|
>'' line to point to the new kernel
|
|
file. After you have done so, type
|
|
``<TT
|
|
CLASS="LITERAL"
|
|
><TT
|
|
CLASS="FILENAME"
|
|
>/sbin/lilo</TT
|
|
></TT
|
|
>''. If LILO reports
|
|
an error message, double-check the file name in your
|
|
``<TT
|
|
CLASS="LITERAL"
|
|
><TT
|
|
CLASS="FILENAME"
|
|
>lilo.conf</TT
|
|
></TT
|
|
>'' file with the file
|
|
name in the ``<TT
|
|
CLASS="LITERAL"
|
|
><TT
|
|
CLASS="FILENAME"
|
|
>/boot/</TT
|
|
></TT
|
|
>''
|
|
directory.</P
|
|
><DIV
|
|
CLASS="CAUTION"
|
|
><P
|
|
></P
|
|
><TABLE
|
|
CLASS="CAUTION"
|
|
BORDER="1"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
ALIGN="CENTER"
|
|
><B
|
|
>Caution</B
|
|
></TD
|
|
></TR
|
|
><TR
|
|
><TD
|
|
ALIGN="LEFT"
|
|
><P
|
|
>Caution: Do not forget this step!</P
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
></DIV
|
|
><P
|
|
>(The above commands assume you are using the Intel platform and use
|
|
LILO to boot your system. See <A
|
|
HREF="install-lilo.html"
|
|
>Section 4.8</A
|
|
> for details
|
|
on the LILO boot loader).</P
|
|
><P
|
|
>After you have upgraded your stock kernel and have updated your boot
|
|
loader information, you should be able to shutdown and reboot using the
|
|
new kernel (see <A
|
|
HREF="system-shutdown-and-restart.html"
|
|
>Section 6.7</A
|
|
> for
|
|
details on shutting down your system).</P
|
|
></DIV
|
|
><DIV
|
|
CLASS="NAVFOOTER"
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"><TABLE
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="linux-kernel-upgrades.html"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="index.html"
|
|
>Home</A
|
|
></TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="kernel-custom.html"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
>Linux Kernel Upgrades</TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="upgrading-linux.html"
|
|
>Up</A
|
|
></TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
>Building a Custom Kernel</TD
|
|
></TR
|
|
></TABLE
|
|
></DIV
|
|
></BODY
|
|
></HTML
|
|
> |