openSUSE add china mirror repo
使用 zypper 工具
以 openSUSE Tumbleweed 20200207
为例
查看现在所启用的 repo
# zypper lr
Repository priorities are without effect. All enabled repositories share the same priority.
# | Alias | Name | Enabled | GPG Check | Refresh
--+----------------------+----------------------------+---------+-----------+--------
1 | repo-debug | openSUSE-Tumbleweed-Debug | No | ---- | ----
2 | repo-oss | openSUSE-Tumbleweed-Oss | Yes | (r ) Yes | Yes
3 | repo-source | openSUSE-Tumbleweed-Source | No | ---- | ----
4 | repo-update | openSUSE-Tumbleweed-Update | Yes | (r ) Yes | Yes
添加清华源
最后是镜像源的备注信息,其它的镜像站的添加方式类似。
zypper addrepo -f https://mirrors.tuna.tsinghua.edu.cn/opensuse/tumbleweed/repo/oss/ tsinghua-mirrors-oss
查看添加之后的系统 repo 状态
可以看到相应的源已经添加成功。
# zypper lr
Repository priorities are without effect. All enabled repositories share the same priority.
# | Alias | Name | Enabled | GPG Check | Refresh
--+----------------------+----------------------------+---------+-----------+--------
1 | repo-debug | openSUSE-Tumbleweed-Debug | No | ---- | ----
2 | repo-oss | openSUSE-Tumbleweed-Oss | Yes | (r ) Yes | Yes
3 | repo-source | openSUSE-Tumbleweed-Source | No | ---- | ----
4 | repo-update | openSUSE-Tumbleweed-Update | Yes | (r ) Yes | Yes
5 | tsinghua-mirrors-oss | tsinghua-mirrors-oss | Yes | ( p) Yes | Yes
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于