为了部署一个NAC应用,需要先上一套RHEL 6.3, 由于Red Hat对应用下载需要注册才可以下载,只能通过网上搜索其他免费源了
在第一次部署完Red Hat后,执行Yum update,则出现:
Loaded plugins: fastestmirror, product-id, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
...
这就是因为没有注册才出现该提示.
进入到 /etc/yum.repos.d, 其中有个rhel-source.repo, 先改名为rhel-source.repo.bak,做个备份
然后新建个 rhel-source.repo
内容如下:
[base]
name=CentOS-$releasever - Base
baseurl=http://mirrors.163.com/centos/6.3/os/$basearch/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6
#released updates
[updates]
name=CentOS-$releasever - Updates
baseurl=http://mirrors.163.com/centos/6.3/updates/$basearch/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6
#packages used/produced in the build but not released
#[addons]
#name=CentOS-$releasever - Addons
#baseurl=http://mirrors.163.com/centos/$releasever/addons/$basearch/
#gpgcheck=1
#gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
baseurl=http://mirrors.163.com/centos/6.3/extras/$basearch/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
baseurl=http://mirrors.163.com/centos/6.3/centosplus/$basearch/
gpgcheck=1
enabled=0
不用纠结里面什么意思,COPY进去,能用就行.
再次执行YUM UPDATE, 自动升级.