下載Linux 內核,從以下網站https://www.kernel.org/
上傳kernel文件到/usr/src/kernels/ 目錄下,此處也可以選擇其他目錄
怎樣在 Ubuntu 上安裝 Linux 3.11 內核 http://www.linuxidc.com/Linux/2013-09/89674.htm
Ubuntu 13.10 (Saucy Salamander) 內核已升級至 Linux Kernel 3.10 RC5 http://www.linuxidc.com/Linux/2013-06/86110.htm
Linux Kernel 3.4.62 LTS 現已經提供下載 http://www.linuxidc.com/Linux/2013-09/90368.htm
如何在Ubuntu 13.10上安裝Linux內核 3.12 http://www.linuxidc.com/Linux/2013-11/92930.htm
解壓kernel文件
[root@apache kernels]# tar -xJvf linux-3.16.1.tar.xz
安裝包 gcc、ncurses-devel
[root@apache yum.repos.d]# yum -y install gcc ncurses-devel
Failed to set locale, defaulting to C
Loaded plugins: langpacks, product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Repository 'y' is missing name in configuration, using id
y | 4.1 kB 00:00:00
Resolving Dependencies
--> Running transaction check
---> Package gcc.x86_64 0:4.8.2-16.el7 will be installed
--> Processing Dependency: cpp = 4.8.2-16.el7 for package: gcc-4.8.2-16.el7.x86_64
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-4.8.2-16.el7.x86_64
--> Processing Dependency: libmpc.so.3()(64bit) for package: gcc-4.8.2-16.el7.x86_64
--> Processing Dependency: libmpfr.so.4()(64bit) for package: gcc-4.8.2-16.el7.x86_64
---> Package ncurses-devel.x86_64 0:5.9-13.20130511.el7 will be installed
--> Running transaction check
---> Package cpp.x86_64 0:4.8.2-16.el7 will be installed
---> Package glibc-devel.x86_64 0:2.17-55.el7 will be installed
--> Processing Dependency: glibc-headers = 2.17-55.el7 for package: glibc-devel-2.17-55.el7.x86_64
--> Processing Dependency: glibc-headers for package: glibc-devel-2.17-55.el7.x86_64
---> Package libmpc.x86_64 0:1.0.1-3.el7 will be installed
---> Package mpfr.x86_64 0:3.1.1-4.el7 will be installed
--> Running transaction check
---> Package glibc-headers.x86_64 0:2.17-55.el7 will be installed
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.17-55.el7.x86_64
--> Processing Dependency: kernel-headers for package: glibc-headers-2.17-55.el7.x86_64
--> Running transaction check
---> Package kernel-headers.x86_64 0:3.10.0-121.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==================================================================================================================
Package Arch Version Repository Size
==================================================================================================================
Installing:
gcc x86_64 4.8.2-16.el7 y 16 M
ncurses-devel x86_64 5.9-13.20130511.el7 y 713 k
Installing for dependencies:
cpp x86_64 4.8.2-16.el7 y 5.9 M
glibc-devel x86_64 2.17-55.el7 y 1.0 M
glibc-headers x86_64 2.17-55.el7 y 650 k
kernel-headers x86_64 3.10.0-121.el7 y 1.4 M
libmpc x86_64 1.0.1-3.el7 y 51 k
mpfr x86_64 3.1.1-4.el7 y 203 k
Transaction Summary
==================================================================================================================
Install 2 Packages (+6 Dependent packages)
Total download size: 26 M
Installed size: 61 M
Downloading packages:
------------------------------------------------------------------------------------------------------------------
Total 31 MB/s | 26 MB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : mpfr-3.1.1-4.el7.x86_64 1/8
Installing : libmpc-1.0.1-3.el7.x86_64 2/8
Installing : cpp-4.8.2-16.el7.x86_64 3/8
Installing : kernel-headers-3.10.0-121.el7.x86_64 4/8
Installing : glibc-headers-2.17-55.el7.x86_64 5/8
Installing : glibc-devel-2.17-55.el7.x86_64 6/8
Installing : gcc-4.8.2-16.el7.x86_64 7/8
Installing : ncurses-devel-5.9-13.20130511.el7.x86_64 8/8
Verifying : ncurses-devel-5.9-13.20130511.el7.x86_64 1/8
Verifying : mpfr-3.1.1-4.el7.x86_64 2/8
Verifying : glibc-headers-2.17-55.el7.x86_64 3/8
Verifying : glibc-devel-2.17-55.el7.x86_64 4/8
Verifying : libmpc-1.0.1-3.el7.x86_64 5/8
Verifying : kernel-headers-3.10.0-121.el7.x86_64 6/8
Verifying : gcc-4.8.2-16.el7.x86_64 7/8
Verifying : cpp-4.8.2-16.el7.x86_64 8/8
Installed:
gcc.x86_64 0:4.8.2-16.el7 ncurses-devel.x86_64 0:5.9-13.20130511.el7
Dependency Installed:
cpp.x86_64 0:4.8.2-16.el7 glibc-devel.x86_64 0:2.17-55.el7 glibc-headers.x86_64 0:2.17-55.el7
kernel-headers.x86_64 0:3.10.0-121.el7 libmpc.x86_64 0:1.0.1-3.el7 mpfr.x86_64 0:3.1.1-4.el7
Complete!
更多詳情見請繼續閱讀下一頁的精彩內容: http://www.linuxidc.com/Linux/2014-08/105919p2.htm