- Create the file /etc/yum.repos.d/rhel-dvd.repo with the following contents:
-
[rhel-cd] name=Red Hat Enterprise Linux $releasever - $basearch - CD baseurl=file:///media/rhel-dvd/ enabled=1 gpgcheck=0
CentOS7 可以直接升级安装下列包
yum update yum install gcc kernel-devel kernel-headers dkms make bzip2 reboot
- http://www.codesec.net/view/454907.html