我在centos7服务器中搭建安装php7时,因为教程(centos6中安装php7)说需要添加yum源:
# rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-remi
然后我打开 /etc/yum.repos.d/remi.repo 文件,看见remi源是centos6版本的,我想升级到centos7版本,请问应该怎么操作?
将原来的yum源备份或者删掉,下载新的yum源替换即可
rm -rf /etc/yum.repos.d/*.repo #删除repo文件,或者自己备份
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/rep...
curl -o /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/rep...
yum makecache #更新缓存