---------------------------------------------------------------
yum install kernel-header kernel-devel
---------------------------------------------------------------
SAMPLE OUTPUT:
-------------------------------------------------------------
[~]# yum install kernel-header kernel-devel
Loaded plugins: fastestmirror, rhnplugin, security
Loading mirror speeds from cached hostfile
* cloudlinux-x86_64-server-6: xmlrpc.cln.cloudlinux.com
Setting up Install Process
No package kernel-header available.
Resolving Dependencies
--> Running transaction check
---> Package kernel-devel.x86_64 0:2.6.32-379.22.1.lve1.2.17.1.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================================================================================================================
Package Arch Version Repository Size
================================================================================================================================================================================
Installing:
kernel-devel x86_64 2.6.32-379.22.1.lve1.2.17.1.el6 cloudlinux-x86_64-server-6 7.3 M
Transaction Summary
================================================================================================================================================================================
Install 1 Package(s)
Total download size: 7.3 M
Installed size: 0
Is this ok [y/N]: y
Downloading Packages:
kernel-devel-2.6.32-379.22.1.lve1.2.17.1.el6.x86_64.rpm | 7.3 MB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : kernel-devel-2.6.32-379.22.1.lve1.2.17.1.el6.x86_64 1/1
Verifying : kernel-devel-2.6.32-379.22.1.lve1.2.17.1.el6.x86_64 1/1
Installed:
kernel-devel.x86_64 0:2.6.32-379.22.1.lve1.2.17.1.el6
Complete!
-------------------------------------------------------------