How To Install Kernel In Redhat Linux
Down load RPMs from Redhat (updates.redhat.com) or Metalab:
- FTP command line method:
ftp ftp.ibiblio.org
OR
Name: anonymous
Password: your-e-mail-address@your-internet access provider.com cd pub/Linux/distributions/redhat/updates/current/en/bone/i386 prompt mget kernel-*2.2.17-fourteen.i386.rpm cd ../i586 - Only perform these steps for Pentium (586) or K6-2/3 architectures ls get kernel-two.2.17-xiv.i586.rpm - Signal the browser at one of the following sites:
- RedHat Updates
Annotation: If using Netscape, press and agree the "Shift" key and select the link to the RPM file to download.
Annotation: There are precompiled kernels for diverse architectures (i386, i586, i686, ...) Check your current kernel for its precompiled architecture with the command uname -m. The kernels marked "smp" are for multiprocessor systems or hyper-threaded systems such as some of the Intel Xenon or P4 processors. Hyperthreading must as well exist enabled. This is often selected in the BIOS for systems on which this is available. The "smp" (symmetric multi-processing) kernels allow for all processors to participate in scheduler tasks too every bit all threads (two) in hyper-threaded processors. This will result in pregnant performance gains on a loaded organization.
Install the kernel. Using the "-F" "freshen" option will remove all previous kernel installs. Practice this only if y'all are daringly confident. The install pick is prefered and safer because if an error is fabricated, hopefully you tin always re-boot to the previous kernel.
rpm -ivh --force kernel-2.ii.17-xiv.i586.rpm
OR rpm -Fvh kernel-two.2.17-14.i586.rpm
Note:
- The "smp" RPM kernel-smp-2.2.17-14.i586.rpm is for multi-processor systems.
- Linux kernel RPM: kernel (/kicking/vmlinux-2.X.XX-X), modules (/lib/modules/2.X.XX-10/...), /boot/System.map-ii.X.20-Ten, and /boot/module-info-2.X.20-X
The next ii packages complete the kernel base.
rpm -ivh --force kernel-ibcs-two.two.17-14.i386.rpm - Intel Binary Compatability Standard: This allows Linux to run Unixware and commercial UNIX Intel binaries rpm -ivh --strength kernel-pcmcia-cs-ii.ii.17-xiv.i386.rpm - Laptop PCMCIA carte support
The following RPMs are not required just are helpful to developers or those who desire to fine melody the kernel by recompiling at a after appointment.
rpm -ivh --nodeps kernel-source-2.two.17-14.i386.rpm
rpm -ivh --nodeps kernel-headers-2.2.17-14.i386.rpm
rpm -Fvh kernel-doc-ii.two.17-14.i386.rpm
rpm -Fvh kernel-utils-2.2.17-fourteen.i386.rpm - Provides /usr/bin/ksymoops which translates the kernel's OOPS output to readable letters
The post-obit RPM is used to generate a kick disk. It includes a trimmed downwards version of the Linux kernel. This kernel is used on the installation kicking disks but and should not be used for an installed system, as many features in this kernel are turned off because of the size constraints.
rpm -ivh kernel-BOOT-two.2.17-xiv.i386.rpm
Note for SCSI systems:
- If your system is booting from a SCSI hard bulldoze, execute the following mkinitrd script which creates the file used to let the system load the SCSI module at kick fourth dimension:
/sbin/mkinitrd /boot/initrd-two.2.17-14.img 2.2.17-xiv
- The 2d argument is the name of the sub-directory of the modules under the directory /lib/modules/. (In this case /lib/modules/2.2.17-xiv/)
- The mkinitrd control is not issued for IDE systems and is SCSI specific. (Information technology actually works on IDE systems merely information technology is pointless. The default Red Hat install besides has this.) It also requires a line in /etc/modules.conf (or for older systems: /etc/conf.modules) referencing the SCSI adapter. It will be the line containing the term "scsi_hostadapter".
Configuration:
- GRUB configuration: Grub is configured by the RPM installation. The configuration file /etc/grub.conf is modified to reference the new kernel installed. If y'all want to convert your system from Lilo to GRUB execute the following command (as root) before installing the kernel RPMs:
-
grub-install --root-directory=/kick '(hd0,0)'
where Grub device descriptions are as follows: (difficult-drive-number,partition). Utilise the control df to view the layout of your hard drives. Hard drives are numbered beginning with "0" and include SCSI and EIDE drives without distinction. The designation (hd0,0) is equivalent to Linux device designations /dev/sda1 (SCSI) or /dev/hda1 (EIDE).
See the YoLinux GRUB boot floppy tutorial for sample Grub configuration file and more than information.
-
- Lilo configuration: Adjacent edit the /etc/lilo.conf file. The kickoff pick is bones. The second example volition allow you to reboot to the previous kernel too every bit the new kernel.
-
boot=/dev/hda - Location of Lilo boot sector map=/boot/map - Locations on hard drive where the kernel tin be establish for boot install=/boot/boot.b prompt timeout=50 default=linux image=/boot/vmlinuz-2.2.17-fourteen label=linux initrd=/boot/initrd-2.2.17-14.img - This line is SCSI specific. Omit for IDE read-only root=/dev/hda7
To allow the organisation to boot the previous kernel merely go along the following lines:
-
image=/kicking/vmlinuz-2.2.14-5.0
characterization=oldlinux
initrd=/boot/initrd-2.2.fourteen-v.0.img - This line is SCSI specific. Omit for IDE read-merely root=/dev/hda7
-
- Update MBR: Now enter the control lilo -v to write the new information to the Master Boot Record (MBR).
Diagnostic output:-
LILO version 21, Copyright 1992-1998 Werner Almesberger Reading kick sector from /dev/sda Merging with /boot/boot.b Boot prototype: /kicking/vmlinuz-2.2.17-14 Mapping RAM disk /kick/initrd-2.ii.17-14.img Added linux * Writing boot sector.
-
- Reboot: The command shutdown -r now volition cause the organization to shutdown and reboot.
At the boot prompt one can enter "?" to listing all the bachelor kernels. In our extended lilo example, two options will be given:linux and oldlinux. The proper name may exist typed in or a caraige render volition select the default equally assigned.
- A new kernel and kernel map requires a new boot / recovery deejay. See the YoLinux tutorial on generating a boot or recovery diskette.
- Boot Prompt Howto.
- bootparam man folio.
- Red Lid: Upgrading the Linux Kernel
"Fedora 18 Desktop Handbook" past Richard Petersen Surfing Turtle Press, ISBN# 1936280639 (Mar half dozen, 2022) | | |
"Fedora 18 Networking and Servers" by Richard Petersen Surfing Turtle Press, ISBN# 1936280698 (March 29, 2022) | | |
"Fedora 14 Desktop Handbook" past Richard Petersen Surfing Turtle Press, ISBN# 1936280167 (November xxx, 2022) | | |
"Fedora 14 Administration and Security" by Richard Petersen Surfing Turtle Press, ISBN# 1936280221 (Jan half dozen, 2022) | | |
"Fedora xiv Networking and Servers" by Richard Petersen Surfing Turtle Press, ISBN# 1936280191 (Dec 26, 2022) | | |
"Fedora 10 and Carmine Hat Enterprise Linux Bible" by Christopher Negus Wiley, ISBN# 0470413395 | | |
"Red Hat Fedora 6 and Enterprise Linux Bible" by Christopher Negus Sams, ISBN# 047008278X | | |
"Fedora vii & Crimson Hat Enterprise Linux: The Complete Reference" by Richard Petersen Sams, ISBN# 0071486429 | | |
"Red Lid Fedora Core 6 Unleashed" by Paul Hudson, Andrew Hudson Sams, ISBN# 0672329298 | | |
"Cherry Hat Linux Fedora 3 Unleashed" by Bill Ball, Hoyt Duff Sams, ISBN# 0672327082 | | |
"Cerise Chapeau Linux nine Unleashed" by Bill Brawl, Hoyt Duff Sams, ISBN# 0672325888 I take the Red Hat 6 version and I have constitute it to be very helpful. I take found it to be way more complete than the other Linux books. Information technology is the most consummate general Linux book in publication. While other books in the "Unleashed" series have dissapointed me, this book is the best out at that place. | |
Source: http://www.yolinux.com/TUTORIALS/LinuxTutorialKernelRpmInstall.html
Posted by: richardintoommand.blogspot.com
0 Response to "How To Install Kernel In Redhat Linux"
Post a Comment