vi /etc/yum.repos.d/RHEL7-Sources.repo
代碼: 選擇全部
[base-source]
name=CentOS-$releasever - Base Sources
baseurl=http://10.10.30.50/rh70x64/
gpgcheck=0
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
rpm -ivh python-chardet-2.0.1-7.el7.noarch.rpm
rpm -ivh python-kitchen-1.1.1-5.el7.noarch.rpm
rpm -ivh yum-utils-1.1.31-24.el7.noarch.rpm
enable repo
yum-config-manager --enable base-source
yum update