  | |  | Upgrading Kernel | Upgrading Kernel 2003-05-20 - By System
Back MessageThis HOWTO assumes that you have already registered your system with the Redhat Network. If not, STOP and do a search for rhn_register on this forum.
If you are running a kernel version OLDER than 2.4.18-26 please read the "Note: " messages carefully. To check the current version of kernel(s) you have installed ( the rpm version) type the following at a bash prompt when logged in as root:
rpm -q kernel
If this displays more than one version number, the largest number is most likely the version you are running. If in doubt compare with:
uname -r
Which shows the actual RUNNING kernel version.
Before you begin this procedure you should have applied ALL other patches and updates required for your system. Check the Ensim and other threads for details on what other patches are SAFE to install.
Make sure you do step (1) first to disable automatic installs by up2date before proceeding.
While this procedure worked perfectly for me and the others who responded on this thread (and also should for you) it is posted without warranty! I won't be responsible if you need a restore
(1) "su -" to root.
type: up2date --configure
Make sure item 8 (retrieve only) is set to yes item 24 (pkgskiplist) is blank Save changes and type
up2date --configure
again to confirm that the changes have taken place.
(2) Type:
up2date -u
This command will retrieve all required packages for the kernel update to /var /spool/up2date. You should see progress bar as files are downloaded from the Red Hat Network. DO NOT proceed if you get any error messages.
(3) Verify files have been downloaded
cd /var/spool/up2date ls -la
and verify that following rpm files are there (Versions will differ if you are not running RH 7.2):
kernel*.rpm (there may be several kernel files ending in .rpm)
Note: The following files will ONLY be present if you are upgrading from a Kernel version OLDER than 2.4.18-17 -- ---- ---- ---- ---- ---- ---- ---- ---- iptables-1.2.5-3.i386.rpm modutils-2.4.18-3.7x.i386.rpm MAKEDEV-3.3-4.i386.rpm dev-3.3-4.i386.rpm -- ---- ---- ---- ---- ---- ---- ---- ----
(4) Verify checksums on the kernel files by comparing the result of :
md5sum kernel*.rpm
with the values at this link: [http://rhn.redhat.com/errata/RHSA-2003-098.html
The other files shown above (which are present ONLY if you are running kernel OLDER than 2.4.18-17 )should be checked with
md5sum *.rpm
and compared with the values at this link: https://rhn.redhat.com/errata/RHSA-2002-205.html
Make sure you check the correct Redhat 7.1 or 7.2 md5 values next to each package name. Also make sure you are also looking at the proper i386 or i686 versions on the kernel packages based on the filename.
Do NOT proceed if you have a mismatch!
(5) IF you have a kernel OLDER than 2.4.18-17 you must update the previously listed packages before the kernel like this:
rpm -Fvh iptables*.rpm rpm -Fvh modutils*.rpm rpm -Fvh MAKEDEV*.rpm rpm -Fvh dev*.rpm
AND
If up2date has downloaded an rpm file called kernel-headers in the /var/spool /up2date directory do this
rpm -Uvh kernel-headers*.rpm
to update your kernel header file BEFORE actually installing the new kernel.
NOTE: There may be other files in the directory not listed here. DO NOT install them unless you know their exact purpose and compatibility with your installation.
(6) Save the existing lilo.conf
cp /etc/lilo.conf /etc/lilo.conf.old
(7) Install kernel
cd /var/spool/up2date
rpm -ivh the-actual-kernel-rpm-file-name
Replace "the-actual-kernel-rpm-file-name" in the command above with the full name of the kernel rpm that was downloaded into /var/spool/up2date. For example , the full name might be kernel-2.4.18-27.7.x.i686.rpm if you have an Intel system.
(Note use of -ivh to leave existing kernel as backup) You should see a progress bar as packages are installed. DO NOT proceed if you get any error messages you don't understand.
(8) Edit /etc/lilo.conf so it reads as follows:
Note: Before editing see note below if your current kernel version is NOT 2.4 .18-26.7.x
Note: If you have a very old system your existing lilo.conf may not contain lines beginning with "initrd". If that is the case, check messages later in this thread for further instructions. Note: If you are running an AMD machine or have one of the newer machines, your boot partition (root=/dev/hda2) may be different. If this is the case, use the partition shown in your EXISTING /etc/lilo.conf NOT the one shown here. Check the messages later in this thread for details.
-- -----begin -- -- prompt timeout=50 default=linuxnew boot=/dev/hda map=/boot/map install=/boot/boot.b message=/boot/message linear
image=/boot/vmlinuz-2.4.18-26.7.x label=linux root=/dev/hda2 read-only initrd=/boot/initrd-2.4.18-26.7.x.img
image=/boot/vmlinuz-2.4.18-27.7.x label=linuxnew root=/dev/hda2 read-only initrd=/boot/initrd-2.4.18-27.7.x.img
----end -- --
The new kernel is labelled linuxnew and will boot by default. Your original kernel is labelled linux and can still be booted as a backup.
Note: If you are currently running a kernel version other than 2.4.18-26.7.x you MUST replace the first block of text with the information appropriate for your system. For example if you are currently running 2.4.9-34 replace: -- --- begin -- -- image=/boot/vmlinuz-2.4.18-26.7.x label=linux initrd=/boot/initrd-2.4.18-26.7.x.img read-only root=/dev/hda2 -- ---- ----- end -- ---- ----
with
-- ---- --- begin -- ---- -- image=/boot/vmlinuz-2.4.9-34 label=linux initrd=/boot/initrd-2.4.9-34.img read-only root=/dev/hda2 -- ---- --- end -- ---- ---- ------
Double check the file names you should use by typing
ls -la /boot
(9) Execute lilo by typing
lilo -v -v
results should be:
[root@(protected) root]# lilo -v -v LILO version 21.4-4, Copyright (C) 1992-1998 Werner Almesberger 'lba32' extensions Copyright (C) 1999,2000 John Coffman
Reading boot sector from /dev/hda Merging with /boot/boot.b Secondary loader: 11 sectors. Mapping message file /boot/message Message: 46 sectors. Boot image: /boot/vmlinuz-2.4.18-26.7.x Setup length is 10 sectors. Mapped 2082 sectors. Mapping RAM disk /boot/initrd-2.4.18-26.7.x.img RAM disk: 228 sectors. Added linux Boot image: /boot/vmlinuz-2.4.18-27.7.x Setup length is 10 sectors. Mapped 2083 sectors. Mapping RAM disk /boot/initrd-2.4.18-27.7.x.img RAM disk: 228 sectors. Added linuxnew * /boot/boot.0300 exists - no backup copy made. Map file size: 29696 bytes. Writing boot sector.
-- ---- ---- ---- ---- ---- ----- Note: If you are currently running a kernel version other than 2.4.18-26.7.x the coressponding lines above will differ.
Look carefully for any errors before going on to step 10! DO NOT reboot if you get errors or don't understand any differences you see!
(10) Reboot with
reboot
(11) After the machine reboots you can update your package list on the Red Hat network by typing:
up2date -p
This will clear the errata list for your system on the Redhat Network. -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Note: I know some of you up2date fans will say that this is way too LONG and could be shortened. Yes it could, but I have chosen to follow the path of safety over brevity when updating something as critical as the kernel. Another Note: There is a known problem using up2date for kernel updates on the Plain RH Compaq 1.7 boxes.
;-) Tina.... -- -- Original Message -- -- From: Faisal To: enigma-list@(protected) Sent: Wednesday, May 21, 2003 4:46 AM Subject: Upgrading Kernel
Hello List,
I am new with Linux I installed RH7.2 with kernel 2.4.7-10 #1 now I want to upgrade my kernel to latest one available on RH updates site.
I have downloaded it but failed to upgrade it any could please guide me how to do it manually as upgrade agent gives dependsy errors.
I would be great if some one tell me the procedure I guess rpm -Fhv is not for kernel upgrade please let me know the simple procedure.
I have updated every thing except kernel so please help to update it also.
Thanks,
Faisal
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD><TITLE>Message</TITLE> <META http-equiv=Content-Type content="text/html; charset=iso-8859-1"> <META content="MSHTML 6.00.2600.0" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV><FONT face=Verdana size=2>This HOWTO assumes that you have already registered your system with the Redhat Network. If not, STOP and do a search for rhn_register on this forum. <BR><BR>If you are running a kernel version OLDER than 2.4.18-26 please read the "Note:" messages carefully. <BR>To check the current version of kernel(s) you have installed ( the rpm version) type the <BR>following at a bash prompt when logged in as root:<BR><BR>rpm -q kernel<BR><BR>If this displays more than one version number, the largest number is most likely the version you are running. If in doubt compare with:<BR><BR>uname -r<BR><BR>Which shows the actual RUNNING kernel version.<BR><BR>Before you begin this procedure you should have applied ALL other patches and updates required for your system. Check the Ensim and other threads for details on what other patches are SAFE to install.<BR><BR>Make sure you do step (1) first to disable automatic installs by up2date before proceeding.<BR><BR>While this procedure worked perfectly for me and the others who responded on this thread (and also should for you) it is posted without warranty! I won't be responsible if you need a restore <BR><BR>(1) "su -" to root.<BR><BR>type: up2date --configure <BR><BR>Make sure<BR>item 8 (retrieve only) is set to yes<BR>item 24 (pkgskiplist) is blank<BR>Save changes and type<BR><BR>up2date --configure<BR><BR>again to confirm that the changes have taken place.<BR><BR>(2) Type: <BR><BR>up2date -u <BR><BR>This command will retrieve all required packages for the kernel update to /var/spool/up2date. You should see progress bar as files are downloaded from the Red Hat Network. DO NOT proceed if you get any error messages.<BR><BR><BR>(3) Verify files have been downloaded<BR><BR>cd /var/spool/up2date <BR>ls -la <BR><BR>and verify that following rpm files are there (Versions will differ if you are not running RH 7.2):<BR><BR>kernel*.rpm (there may be several kernel files ending in .rpm)<BR><BR>Note: The following files will ONLY be present if you are upgrading from a Kernel version OLDER than 2.4.18-17<BR>-- ---- ---- ---- ---- ---- ---- ---- ----<BR>iptables-1.2.5-3 .i386.rpm<BR>modutils-2.4.18-3.7x.i386.rpm<BR>MAKEDEV-3.3-4.i386.rpm<BR>dev-3.3 -4.i386.rpm<BR>-- ---- ---- ---- ---- ---- ---- ---- ----<BR><BR><BR>(4) Verify checksums on the kernel files by comparing the result of :<BR><BR>md5sum kernel*.rpm<BR><BR>with the values at this link:<BR>[</FONT><A href="http://rhn.redhat.com/errata/RHSA-2003-098.html" target=_blank><FONT face=Verdana color=#1d40f5 size=2>http://rhn.redhat.com/errata/RHSA-2003-098.html</FONT></A><BR><BR><FONT face=Verdana size=2>The other files shown above (which are present ONLY if you are running kernel OLDER than 2.4.18-17 )should be checked with <BR><BR>md5sum *.rpm<BR><BR>and compared with the values at this link:<BR></FONT><A href="https://rhn.redhat.com/errata/RHSA-2002-205.html" target=_blank><FONT face=Verdana color=#1d40f5 size=2>https://rhn.redhat.com/errata/RHSA-2002-205.html</FONT></A><BR><BR><FONT face=Verdana size=2>Make sure you check the correct Redhat 7.1 or 7.2 md5 values next to each package name. Also make sure you are also looking at the proper i386 or i686 versions on the kernel packages based on the filename.<BR><BR>Do NOT proceed if you have a mismatch!<BR><BR>(5) IF you have a kernel OLDER than 2.4.18-17 you must update the previously listed packages before the kernel like this: <BR><BR>rpm -Fvh iptables*.rpm <BR>rpm -Fvh modutils*.rpm <BR>rpm -Fvh MAKEDEV*.rpm <BR>rpm -Fvh dev*.rpm<BR><BR>AND <BR><BR>If up2date has downloaded an rpm file called kernel-headers in the /var/spool/up2date directory<BR>do this<BR><BR>rpm -Uvh kernel-headers*.rpm<BR><BR>to update your kernel header file BEFORE actually installing the new kernel.<BR><BR>NOTE: There may be other files in the directory not listed here. DO NOT install them unless you know their exact purpose and compatibility with your installation.<BR><BR>(6) Save the existing lilo.conf <BR><BR>cp /etc/lilo.conf /etc/lilo.conf.old <BR><BR><BR>(7) Install kernel <BR><BR>cd /var/spool/up2date<BR><BR>rpm -ivh the-actual-kernel-rpm-file-name<BR><BR>Replace "the-actual-kernel-rpm-file-name " in the command above with the full name of the kernel rpm that was downloaded into /var/spool/up2date. For example, the full name might be kernel-2.4.18-27.7.x.i686.rpm if you have an Intel system.<BR><BR>(Note use of -ivh to leave existing kernel as backup)<BR>You should see a progress bar as packages are installed.<BR>DO NOT proceed if you get any error messages you don't understand.<BR><BR>(8) Edit /etc/lilo.conf so it reads as follows:<BR><BR>Note: Before editing see note below if your current kernel version is NOT 2.4.18-26.7.x<BR><BR>Note: If you have a very old system your existing lilo.conf may not contain lines beginning with "initrd". If that is the case, check messages later in this thread for further instructions. <BR>Note: If you are running an AMD machine or have one of the newer machines, your boot partition (root=/dev/hda2) may be different. If this is the case, use the partition shown in your EXISTING /etc/lilo.conf NOT the one shown here.<BR >Check the messages later in this thread for details.<BR><BR>-- -----begin -- -- <BR>prompt<BR>timeout=50<BR>default=linuxnew<BR>boot=/dev/hda<BR>map=/boot/map <BR>install=/boot/boot.b<BR>message=/boot/message<BR>linear<BR><BR>image=/boot /vmlinuz-2.4.18-26.7.x<BR>label=linux<BR>root=/dev/hda2<BR>read-only<BR>initrd= /boot/initrd-2.4.18-26.7.x.img<BR><BR>image=/boot/vmlinuz-2.4.18-27.7.x<BR>label =linuxnew<BR>root=/dev/hda2<BR>read-only<BR>initrd=/boot/initrd-2.4.18-27.7.x .img<BR><BR>----end -- -- <BR><BR>The new kernel is labelled linuxnew and will boot by default. Your original kernel is labelled linux and can still be booted as a backup. <BR><BR>Note: If you are currently running a kernel version other than 2.4.18-26.7.x you MUST replace the first block of text with the information appropriate for your system. For example if you are currently running 2.4.9-34 replace:<BR>-- --- begin -- --<BR>image=/boot/vmlinuz-2.4.18-26.7.x<BR>label=linux<BR>initrd=/boot /initrd-2.4.18-26.7.x.img<BR>read-only<BR>root=/dev/hda2<BR>-- ---- ----- end -- ---- ----<BR><BR>with <BR><BR>-- ---- --- begin -- ---- --<BR>image=/boot/vmlinuz-2.4.9-34<BR>label=linux<BR>initrd=/boot /initrd-2.4.9-34.img<BR>read-only<BR>root=/dev/hda2<BR>-- ---- --- end -- ---- ---- ------<BR><BR>Double check the file names you should use by typing<BR><BR>ls -la /boot<BR><BR><BR>(9) Execute lilo by typing<BR><BR>lilo -v -v <BR><BR>results should be:<BR><BR><BR>[root@(protected) root]# lilo -v -v<BR>LILO version 21.4-4, Copyright (C) 1992-1998 Werner Almesberger<BR>'lba32 ' extensions Copyright (C) 1999,2000 John Coffman<BR><BR>Reading boot sector from /dev/hda<BR>Merging with /boot/boot.b<BR>Secondary loader: 11 sectors.<BR>Mapping message file /boot/message<BR>Message: 46 sectors.<BR>Boot image: /boot/vmlinuz-2.4.18-26.7.x<BR>Setup length is 10 sectors.<BR>Mapped 2082 sectors.<BR>Mapping RAM disk /boot/initrd-2.4.18-26.7.x.img<BR>RAM disk: 228 sectors.<BR>Added linux<BR>Boot image: /boot/vmlinuz-2.4.18-27.7.x<BR>Setup length is 10 sectors.<BR>Mapped 2083 sectors.<BR>Mapping RAM disk /boot/initrd-2.4.18-27.7.x.img<BR>RAM disk: 228 sectors.<BR>Added linuxnew *<BR>/boot/boot.0300 exists - no backup copy made.<BR>Map file size: 29696 bytes.<BR>Writing boot sector.<BR><BR><BR>-- ---- ---- ---- ---- ---- ----- <BR>Note: If you are currently running a kernel version other than 2.4.18-26.7 .x the coressponding lines above will differ.<BR><BR>Look carefully for any errors before going on to step 10! DO NOT reboot if you get errors or don't understand any differences you see!<BR><BR>(10) Reboot with <BR><BR>reboot<BR><BR>(11) After the machine reboots you can update your package list on the Red Hat network by typing:<BR><BR>up2date -p<BR><BR>This will clear the errata list for your system on the Redhat Network.<BR>-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------<BR>Note : I know some of you up2date fans will say that this is way too LONG and could be shortened. Yes it could, but I have chosen to follow the path of safety over brevity when updating something as critical as the kernel.<BR>Another Note:<BR>There is a known problem using up2date for kernel updates on the Plain RH Compaq 1.7 boxes. </FONT><BR></DIV> <DIV><FONT face=Verdana size=2>;-)</FONT></DIV> <DIV><FONT face=Verdana size=2>Tina....</FONT></DIV> <BLOCKQUOTE dir=ltr style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> <DIV style="FONT: 10pt arial">-- -- Original Message -- -- </DIV> <DIV style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> <A title=fais@(protected) href="mailto:fais@(protected)">Faisal</A> </DIV> <DIV style="FONT: 10pt arial"><B>To:</B> <A title=enigma-list@(protected) href="mailto:enigma-list@(protected)">enigma-list@(protected)</A> </DIV> <DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, May 21, 2003 4:46 AM</DIV> <DIV style="FONT: 10pt arial"><B>Subject:</B> Upgrading Kernel </DIV> <DIV><BR></DIV> <DIV><FONT face=Arial size=2><SPAN class=624281023-20052003>Hello List,</SPAN></FONT></DIV> <DIV><FONT face=Arial size=2><SPAN class=624281023-20052003></SPAN></FONT> </DIV> <DIV><FONT face=Arial><FONT size=2><SPAN class=624281023-20052003>I am new with Linux I installed RH7.2 with kernel </SPAN>2.4.7-10 #1 <SPAN class=624281023-20052003>now I want to upgrade my kernel to latest one available on RH updates site.</SPAN></FONT></FONT></DIV> <DIV><FONT face=Arial><FONT size=2><SPAN class=624281023-20052003></SPAN></FONT></FONT> </DIV> <DIV><FONT face=Arial><FONT size=2><SPAN class=624281023-20052003>I have downloaded it but failed to upgrade it any could please guide me how to do it manually as upgrade agent gives dependsy errors.</SPAN></FONT></FONT></DIV> <DIV><FONT face=Arial><FONT size=2><SPAN class=624281023-20052003></SPAN></FONT></FONT> </DIV> <DIV><FONT face=Arial size=2><SPAN class=624281023-20052003>I would be great if some one tell me the procedure I guess rpm -Fhv is not for kernel upgrade please let me know the simple procedure.</SPAN></FONT></DIV> <DIV><FONT face=Arial size=2><SPAN class=624281023-20052003></SPAN></FONT> </DIV> <DIV><FONT face=Arial size=2><SPAN class=624281023-20052003>I have updated every thing except kernel so please help to update it also.</SPAN></FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV align=left><SPAN class=624281023-20052003><FONT face=Arial size=2>Thanks,</FONT></SPAN></DIV> <DIV align=left><SPAN class=624281023-20052003></SPAN> </DIV> <DIV align=left>Faisal</DIV> <DIV><FONT face=Arial size=2></FONT> </DIV></BLOCKQUOTE></BODY></HTML>
Earn $52 per hosting referral at Lunarpages.
|
|
 |