Press "Enter" to skip to content

Author: kiccleaf

centos5 更新kernel的方法

热度 2,579 度

Linux 下更新kernel的方法以下是配置:

[root@kiccleaf ~]# file /sbin/init #查看当前系统是32位或64位系统
/sbin/init: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped
[root@kiccleaf ~]# yum list kernel* #列出可更新的内容
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: mirrors.163.com
* base: mirrors.163.com
* extras: mirrors.163.com
* updates: mirrors.163.com
addons                                                              |  951 B     00:00
base                                                                | 2.1 kB     00:00
extras                                                              | 2.1 kB     00:00
updates                                                             | 1.9 kB     00:00
Not using downloaded repomd.xml because it is older than what we have:
Current   : Sun Mar 13 01:44:04 2011
Downloaded: Fri Jan  7 17:26:51 2011
Installed Packages
kernel.i686                                2.6.18-194.el5                         installed
kernel.i686                                2.6.18-194.32.1.el5                    installed
kernel-headers.i386                        2.6.18-194.32.1.el5                    installed
Available Packages
kernel-PAE.i686                            2.6.18-194.32.1.el5                    updates
kernel-PAE-devel.i686                      2.6.18-194.32.1.el5                    updates
kernel-debug.i686                          2.6.18-194.32.1.el5                    updates
kernel-debug-devel.i686                    2.6.18-194.32.1.el5                    updates
kernel-devel.i686                          2.6.18-194.32.1.el5                    updates
kernel-doc.noarch                          2.6.18-194.32.1.el5                    updates
kernel-xen.i686                            2.6.18-194.32.1.el5                    updates
kernel-xen-devel.i686                      2.6.18-194.32.1.el5                    updates
[root@kiccleaf ~]# yum install kernel-PAE.i686 -y #PAE为支持大内存的版本
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: centos.ustc.edu.cn
* base: centos.ustc.edu.cn
* extras: centos.ustc.edu.cn
* updates: centos.ustc.edu.cn
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package kernel-PAE.i686 0:2.6.18-194.32.1.el5 set to be installed
--> Finished Dependency Resolution

Dependencies Resolved

====================================================
Package              Arch           Version                       Repository         Size
====================================================
Installing:
kernel-PAE           i686           2.6.18-194.32.1.el5           updates            17 M

Transaction Summary
====================================================
Install       1 Package(s)
Upgrade       0 Package(s)

Total download size: 17 M
Downloading Packages:
kernel-PAE-2.6.18-194.32.1.el5.i686.rpm                             |  17 MB     01:59
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing     : kernel-PAE                                                          1/1

Installed:
kernel-PAE.i686 0:2.6.18-194.32.1.el5

Complete!
[root@kiccleaf ~]#reboot   #重启系统

[root@kiccleaf ~]# uname -a #查看更后的版本
Linux kiccleaf 2.6.18-194.32.1.el5 #1 SMP Wed Jan 5 17:53:09 EST 2011 i686 i686 i386 GNU/Linux

Leave a Comment

关于本人

热度 4,040 度

关于本人

来无风,去无踪!平平淡淡的一个人!

专业从事技术研发,系统架构,高性能解决方案。欢迎广朋友相互交流。

QQ:53045936     注:叶子blog

3 Comments