Raspberry Pi 3 Model B+ 使用CentOS 7系统配置Yum源

举报
only_one 发表于 2019/05/25 20:41:59 2019/05/25
5.7k+ 0 1
【摘要】 最近在树莓派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

image.png

【声明】本内容来自华为云开发者社区博主,不代表华为云及华为云开发者社区的观点和立场。转载时必须标注文章的来源(华为云社区)、文章链接、文章作者等基本信息,否则作者和本社区有权追究责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@huaweicloud.com
  • 点赞
  • 收藏
  • 关注作者

热门文章

评论(0

抱歉,系统识别当前为高风险访问,暂不支持该操作

    全部回复

    上滑加载中

    设置昵称

    在此一键设置昵称,即可参与社区互动!

    *长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。

    *长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。