Mac yum换源

在给yum换源阿里时需要下载对应的Cent-Base文件,但是对于新款的M系列的Mac芯片和系统时ARM64架构所以下载的文件不可用。

解释一下:

gpk是不可用的具体为什么我也不知道不过可以在安装时候加上--nogpgcheck参数跳过gpg检查

7.9.2009是你centos系统的版本

# centos-altarch-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for centos-altarch updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the 
# remarked out baseurl= line instead.
#
#
 
[base]
name=centos-altarch-7.9.2009 - Base - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos-altarch/7.9.2009/os/$basearch/
        http://mirrors.aliyuncs.com/centos-altarch-altarch/7.9.2009/os/$basearch/
        http://mirrors.cloud.aliyuncs.com/centos-altarch/7.9.2009/os/$basearch/
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos-altarch/7.9.2009/os/aarch64/RPM-GPG-KEY-CentOS-7
 
#released updates 
[updates]
name=centos-altarch-7.9.2009 - Updates - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos-altarch/7.9.2009/updates/$basearch/
        http://mirrors.aliyuncs.com/centos-altarch/7.9.2009/updates/$basearch/
        http://mirrors.cloud.aliyuncs.com/centos-altarch/7.9.2009/updates/$basearch/
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos-altarch/7.9.2009/os/aarch64/RPM-GPG-KEY-CentOS-7
 
#additional packages that may be useful
[extras]
name=centos-altarch-7.9.2009 - Extras - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos-altarch/7.9.2009/extras/$basearch/
        http://mirrors.aliyuncs.com/centos-altarch/7.9.2009/extras/$basearch/
        http://mirrors.cloud.aliyuncs.com/centos-altarch/7.9.2009/extras/$basearch/
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos-altarch/7.9.2009/os/aarch64/RPM-GPG-KEY-CentOS-7
 
#additional packages that extend functionality of existing packages
[centos-altarchplus]
name=centos-altarch-7.9.2009 - Plus - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos-altarch/7.9.2009/centos-altarchplus/$basearch/
        http://mirrors.aliyuncs.com/centos-altarch/7.9.2009/centos-altarchplus/$basearch/
        http://mirrors.cloud.aliyuncs.com/centos-altarch/7.9.2009/centos-altarchplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirrors.aliyun.com/centos-altarch/7.9.2009/os/aarch64/RPM-GPG-KEY-CentOS-7
 
#contrib - packages by centos-altarch Users
[contrib]
name=centos-altarch-7.9.2009 - Contrib - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos-altarch/7.9.2009/contrib/$basearch/
        http://mirrors.aliyuncs.com/centos-altarch/7.9.2009/contrib/$basearch/
        http://mirrors.cloud.aliyuncs.com/centos-altarch/7.9.2009/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirrors.aliyun.com/centos-altarch/7.9.2009/os/aarch64/RPM-GPG-KEY-CentOS-7

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值