Change the Linux kernel version

Source: Internet
Author: User
Replace the Linux kernel version-general Linux technology-Linux programming and kernel information. For more information, see the following section. Recently, due to some relationships, you need to replace the LINUX kernel and write down the operation process. I hope you can take a look at it:

Original System: Fedora Core 9
Linux localhost. localdomain 2.6.25-14. fc9.i686 #1 SMP Thu May 1 06:28:41 EDT 2008 i686 i686 i386 GNU/Linux

Downgrade:
Linux-2.6.24.6

Specific operations:
[Root @ localhost ~] # Cd/usr/local/sbin
[Root @ localhost sbin] # wget http://www.de.kernel.org/pub/lin... nux-2.6.24.6.tar.gz
[Root @ localhost sbin] # tar-zxvf linux-2.6.24.6.tar.gz
[Root @ localhost sbin] # Music linux-2.6.24.6 linux
[Root @ localhost sbin] # ln-s/usr/local/sbin/linux/usr/src/linux
[Root @ localhost sbin] # cd/usr/src/linux
[Root @ localhost linux] # make mrproper <-- delete the previous. o file. This step can be omitted during the first running.
[Root @ localhost linux] # make menuconfig
[Root @ localhost linux] # make dep <-- establish dependency. This step can be omitted during the first run.
* ** Warning: make dep is unnecessary now.
[Root @ localhost linux] # make clean <-- delete useless files
[Root @ localhost linux] # make bzImage <-- compile the kernel
[Root @ localhost linux] # make modules <-- Compilation Module
[Root @ localhost linux] # make modules_install <-- installation Module
[Root @ localhost linux] # make install <-- this step is to create initrd (to load LKM programs)
[Root @ localhost linux] # new-kernel-pkg -- install -- mkinitrd -- depmod 2.6.24.6 <-- write to grub. conf
[Root @ localhost linux] # shutdown-r now

After the restart, the upgrade result is:
Linux localhost. localdomain 2.6.24.6 #1 SMP Tue Aug 26 23:15:14 CST 2008 i686 i686 i386 GNU/Linux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.