For CentOS 7, ensure that the system has the correct Linux kernel sources from the CentOS repositories: $ sudo yum install -y kernel-devel-$(uname -r) kernel-headers-$(uname -r) Update the repository cache and install the driver using the nvidia-driver-latest-dkms meta-package. Turn on and install EPEL Repo on a CentOS 7.x You must install dkms for registering the NVIDA kernel module with DKMS: $ sudo yum -y install epel-release $ sudo yum -y install dkms.
![Centos Centos](https://www.tecmint.com/wp-content/uploads/2015/07/Create-Virtalbox-New-Guest-Machine.png)
Installing dkms on CENTOS 6.. it is easy ... just find the package you need download and install.
root@ip-172-30-0-42 ec2-user]# wget http://linux.dell.com/dkms/permalink/dkms-2.2.0.3-1.noarch.rpm
--2014-07-14 16:20:50-- http://linux.dell.com/dkms/permalink/dkms-2.2.0.3-1.noarch.rpm
Resolving linux.dell.com... 143.166.224.62
Connecting to linux.dell.com|143.166.224.62|:80... connected.
HTTP request sent, awaiting response... 200 OK
Install Virtualbox Additions On Centos 7 Guest Vm
Length: 108241 (106K) [application/octet-stream]Saving to: “dkms-2.2.0.3-1.noarch.rpm”
Installing Dkms On Centos
![Install virtualbox additions on centos 7 guest vm Install virtualbox additions on centos 7 guest vm](https://media.if-not-true-then-false.com/2015/08/06-nvidia-installer-xorg-update-and-backup.png)
![Installing Installing](https://www.unixmen.com/wp-content/uploads/2013/08/2013-08-22_123621-300x135.png)
[root@ip-172-30-0-42 ec2-user]# rpm -i dkms-2.2.0.3-1.noarch.rpm
Installing Dkms On Centos 7 5
[root@ip-172-30-0-42 ec2-user]#Installing Dkms On Centos 7 2
![Install mate on centos 7 Install mate on centos 7](https://linuxhint.com/wp-content/uploads/2018/02/l4.png)
Installing Dkms On Centos 7 Command
.Enjoy