Raspberry Pi 3 Model B+ 使用CentOS 7系统配置Yum源
【摘要】 最近在树莓派3上安装了CentOS 7 ARM版系统,系统在华为开源镜像站下载,点击下载CentOS-Userland-7-armv7hl-RaspberryPI。系统安装后由于默认的yum源速度不尽人意想配置国内的Yum源,系统是在华为开源镜像站下载的,Yum源也想配置为华为开源镜像站的。 由于华为开源镜像站没有给出CentOS-AltArch的.repo文件,只能自己参考C...
最近在树莓派3上安装了CentOS 7 ARM版系统,系统在华为开源镜像站下载,点击下载CentOS-Userland-7-armv7hl-RaspberryPI。系统安装后由于默认的yum源速度不尽人意想配置国内的Yum源,系统是在华为开源镜像站下载的,Yum源也想配置为华为开源镜像站的。
由于华为开源镜像站没有给出CentOS-AltArch的.repo文件,只能自己参考CentOS-Base.repo配置了。
# CentOS-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 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-$releasever - Base - mirrors.huaweicloud.com baseurl=https://mirrors.huaweicloud.com/centos-altarch/$releasever/os/$basearch/ gpgcheck=1 gpgkey=https://mirrors.huaweicloud.com/centos-altarch/$releasever/os/$basearch/RPM-GPG-KEY-CentOS-7 #released updates [updates] name=CentOS-$releasever - Updates - mirrors.huaweicloud.com baseurl=https://mirrors.huaweicloud.com/centos-altarch/$releasever/updates/$basearch/ gpgcheck=1 gpgkey=https://mirrors.huaweicloud.com/centos-altarch/$releasever/os/$basearch/RPM-GPG-KEY-CentOS-7 #additional packages that may be useful [extras] name=CentOS-$releasever - Extras - mirrors.huaweicloud.com baseurl=https://mirrors.huaweicloud.com/centos-altarch/$releasever/extras/$basearch/ gpgcheck=1 gpgkey=https://mirrors.huaweicloud.com/centos-altarch/$releasever/os/$basearch/RPM-GPG-KEY-CentOS-7 #additional packages that extend functionality of existing packages [centosplus] name=CentOS-$releasever - Plus - mirrors.huaweicloud.com baseurl=https://mirrors.huaweicloud.com/centos-altarch/$releasever/centosplus/$basearch/ gpgcheck=1 enabled=0 gpgkey=https://mirrors.huaweicloud.com/centos-altarch/$releasever/os/$basearch/RPM-GPG-KEY-CentOS-7
#CentOS-armhfp-kernel.repo [centos-kernel] name=CentOS Kernels for armhfp baseurl=https://repo.huaweicloud.com/centos-altarch/$releasever/kernel/$basearch/kernel-$kvariant enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-AltArch-Arm32
【版权声明】本文为华为云社区用户原创内容,转载时必须标注文章的来源(华为云社区)、文章链接、文章作者等基本信息, 否则作者和本社区有权追究责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱:
cloudbbs@huaweicloud.com
- 点赞
- 收藏
- 关注作者
评论(0)