Alpine Linux 包管理器 apk 设置镜像地址
Alpine Linux About 1,541 words包搜索地址
https://pkgs.alpinelinux.org/packages
查看仓库地址
cat /etc/apk/repositories
包仓库地址镜像
清华大学镜像
echo "https://mirror.tuna.tsinghua.edu.cn/alpine/v3.16/main" >> /etc/apk/repositories \
&& echo "https://mirror.tuna.tsinghua.edu.cn/alpine/v3.16/community" >> /etc/apk/repositories \
&& echo "https://mirror.tuna.tsinghua.edu.cn/alpine/latest-stable/main" >> /etc/apk/repositories \
&& echo "https://mirror.tuna.tsinghua.edu.cn/alpine/latest-stable/community" >> /etc/apk/repositories \
&& echo "https://mirror.tuna.tsinghua.edu.cn/alpine/edge/testing" >> /etc/apk/repositories
中科大镜像
echo "https://mirrors.ustc.edu.cn/alpine/v3.16/main" >> /etc/apk/repositories \
&& echo "https://mirrors.ustc.edu.cn/alpine/v3.16/community" >> /etc/apk/repositories \
&& echo "https://mirrors.ustc.edu.cn/alpine/latest-stable/main" >> /etc/apk/repositories \
&& echo "https://mirrors.ustc.edu.cn/alpine/latest-stable/community" >> /etc/apk/repositories
阿里镜像
echo "https://mirrors.aliyun.com/alpine/v3.16/main" >> /etc/apk/repositories \
&& echo "https://mirrors.aliyun.com/alpine/v3.16/community" >> /etc/apk/repositories \
&& echo "https://mirrors.aliyun.com/alpine/latest-stable/main" >> /etc/apk/repositories \
&& echo "https://mirrors.aliyun.com/alpine/latest-stable/community" >> /etc/apk/repositories
更新仓库
必须要执行该命令,否则添加的镜像地址无效。
apk update
搜索安装包
apk search -v pcre2
备注
edge
版是开发版本,不能与stable
版本同时存在仓库中。
Views: 1,924 · Posted: 2022-07-28
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb/LiteNote扫描下方二维码关注公众号和小程序↓↓↓
Loading...