1 检查系统内核版本 [root@CentOS ~]# uname -a
Linux centos 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:35 EDT 2010 i686 i686 i386 GNU/Linux
2 安装软件环境 yum install gcc
yum install kernel-devel
yum install kernel-headers
注:这步执行后的版kernel-devel和kernel-headers 的版本为
======================================================================================================
Package Arch Version Repository Size
======================================================================================================
Installing:
kernel-devel x86_64 2.6.18-308.16.1.el5 updates 5.7 M
Transaction Summary
======================================================================================================
Install 1 Package(s)
Upgrade 0 Package(s)
3 升级系统内核 注:如果不升级内核的话,那么”kernel-devel和kernel-headers”与kenerl内核的版本不一致在第一步uname -a我们看到内核版本为2.6.18-194.el5
[root@centos ~]# yum install kernel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.163.com
* extras: mirrors.163.com
* updates: mirrors.163.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package kernel.x86_64 0:2.6.18-308.16.1.el5 set to be installed
--> Finished Dependency Resolution
Dependencies Resolved
======================================================================================================
Package Arch Version Repository Size
======================================================================================================
Installing:
kernel x86_64 2.6.18-308.16.1.el5 updates 21 M
Transaction Summary
======================================================================================================
Install 1 Package(s)
Upgrade 0 Package(s)
Total download size: 21 M
Is this ok [y/N]: y
Downloading Packages:
kernel-2.6.18-308.16.1.el5.x86_64.rpm | 21 MB 00:20
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : kernel 1/1
Installed:
kernel.x86_64 0:2.6.18-308.16.1.el5
Complete!
升级完了内核,现在在来看下内核的版本变更过来了没有
[root@centos ~]# uname -a
Linux centos 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:14 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
还是没有变过来,这里要注意了。升级内核后一定要重启
CentOS构建chroot环境CentOS 6.2安装VirtualBox4.1.10+VirtualBox后台运行+开机自启动相关资讯 VirtualBox VirtualBox安装 VirtualBox安装教程
- VirtualBox 5.1.6发布:支持Linux (今 14:41)
- Kali Linux安装VirtualBox虚拟机 (08月17日)
- VirtualBox 5.0.12 发布下载,开源 (12/19/2015 20:54:03)
| - CentOS 5.8 x64安装VirtualBox-5.0 (08月29日)
- VirtualBox 5.0.14 发布下载,开源 (01月27日)
- VirtualBox 5.0.10 发布下载,开源 (11/12/2015 08:24:53)
|
本文评论 查看全部评论 (0)