1.创建一个新文件
touch /etc/yum.repos.d/city-fan.repo
2.写入如下内容:
[CityFan]
name=City Fan Repo
baseurl=http://www.city-fan.org/ftp/contrib/yum-repo/rhel$releasever/$basearch/
enabled=1
gpgcheck=0
3.运行更新命令
yum clean all
yum install curl
touch /etc/yum.repos.d/city-fan.repo
[CityFan]
name=City Fan Repo
baseurl=http://www.city-fan.org/ftp/contrib/yum-repo/rhel$releasever/$basearch/
enabled=1
gpgcheck=0
yum clean all
yum install curl
评论 (0)