Alpine 系统修改 apk 源说明

源配置文件路径:

/etc/apk/repositories

官方源示例:

https://dl-cdn.alpinelinux.org/alpine/v3.13/main
https://dl-cdn.alpinelinux.org/alpine/v3.13/community

阿里云源示例:

https://mirrors.aliyun.com/alpine/v3.13/main
https://mirrors.aliyun.com/alpine/v3.13/community

命令行修改方法:

sed -i 's@dl-cdn.alpinelinux.org@mirrors.aliyun.com@g' /etc/apk/repositories
posted @ 2021-08-24 08:39  Varden  阅读(1618)  评论(0编辑  收藏  举报