redhat的更新包只对注册的用户生效,所以我们自己手动更改成CentOS的更新包,CentOS几乎和redhat是一样的,所以无需担心软件包是否可安装,安装之后是否有问题只
1,首先删除redhat原有的百胜,因为redhat原本的百胜没有注册为redhat用户是用不了的。
rpm aq | grep百胜| xargs rpm - e - nodeps
rpm aq | grep python-iniparse | xargs rpm - e - nodeps
2,下163载的百胜安装包
# wget http://mirrors.163.com/centos/7/os/x86_64/packages/yum 3.4.3 - 150. - el7.centos.noarch.rpm
# wget http://mirrors.163.com/centos/7/os/x86_64/packages/python iniparse - 0.4 - 9. - el7.noarch.rpm
# wget http://mirrors.163.com/centos/7/os/x86_64/packages/yum -元数据解析器- 1.1.4 - 10. - el7.x86_64.rpm
# wget http://mirrors.163.com/centos/7/os/x86_64/yum - plugin - fastestmirror 1.1.31 - 40. - el7.noarch.rpm
3、安装下载的rpm包
rpm -ivh *。rpm
4,创建文件/etc/yum.repos.d/rhel-debuginfo。回购并写入,若没有vim时使用下面方法创建
回声(基地)的祝辞rhel-debuginfo。回购
回声的名字=CentOS - releasever -基础的祝辞祝辞rhel-debuginfo。回购
回声“baseurl=http://mirrors.163.com/centos/7/os/basearch美元/?在祝辞rhel-debuginfo。回购
回声“gpgcheck=1”,在祝辞rhel-debuginfo。回购
回声的gpgkey=http://mirrors.163.com/centos/7/os/x86_64/RPM-GPG-KEY-CentOS-7,在祝辞rhel-debuginfo。回购
回声“#发布更新”,在祝辞rhel-debuginfo。回购
回声”(更新),在祝辞rhel-debuginfo。回购
回声“name=CentOS - releasever美元更新”,在祝辞rhel-debuginfo。回购
回声“baseurl=http://mirrors.163.com/centos/7/updates/basearch美元/?在祝辞rhel-debuginfo。回购
回声“gpgcheck=1”,在祝辞rhel-debuginfo。回购
回声的gpgkey=http://mirrors.163.com/centos/7/os/x86_64/RPM-GPG-KEY-CentOS-7,在祝辞rhel-debuginfo。回购
回声的(额外的),在祝辞rhel-debuginfo。回购
回声的名字=CentOS - releasever -额外的美元,在祝辞rhel-debuginfo。回购
回声“baseurl=http://mirrors.163.com/centos/7/extras//basearch美元/?在祝辞rhel-debuginfo。回购
回声“gpgcheck=1”,在祝辞rhel-debuginfo。回购
回声的gpgkey=http://mirrors.163.com/centos/7/os/x86_64/RPM-GPG-KEY-CentOS-7,在祝辞rhel-debuginfo。回购
回声“[centosplus]”,在祝辞rhel-debuginfo。回购
回声的名字=CentOS - releasever美元+ ',在祝辞rhel-debuginfo。回购
回声“baseurl=http://mirrors.163.com/centos/7/centosplus//basearch美元/?在祝辞rhel-debuginfo。回购
回声“gpgcheck=1”,在祝辞rhel-debuginfo。回购
回声“启用=0”,在祝辞rhel-debuginfo。回购
6日,百胜清洁all
7、yum更新测试。
8日,安装epel源
# yum安装epel-release