Search This Blog

Saturday, February 28, 2015

Trying to install virtual box guest additions on CentOS 7 and unable to find the sources of your current linux kernel ?

Unable to find the sources of your current linux kernel ? 

install the following packages: 
kernel-devel
kernel-headers
dkms 

(dkms for centos7 can be located in the epel repository) 


how to install repoforge
http://repoforge.org/
rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm

screen capture image of issuing the rpm command



how to install epel 
(still easier) 
yum --enablerepo=extras install epel-release

Pay attention that at the time of this post: EPEL has a dkms version, whereas REPOFORGE (formerly rpmforge) still seems to be slightly in the woods. 

screen image of issuing the outcome of the yum command