mirror of
https://github.com/tuna/mirror-web.git
synced 2025-12-25 20:32:46 +00:00
Use select instead of variable in opensuse leap help
This commit is contained in:
parent
2369be0384
commit
9dfcc44b65
|
|
@ -5,7 +5,6 @@ mirrorid: opensuse
|
|||
---
|
||||
|
||||
## openSUSE 镜像使用帮助
|
||||
===================
|
||||
|
||||
openSUSE 项目是一个由 Novell 赞助的社区项目。该项目旨在推进 Linux 的广泛应用,提供自由、易于入手和美观实用的 openSUSE Linux 发行版。openSUSE 使用 `zypper` 作为包管理器。
|
||||
|
||||
|
|
@ -16,7 +15,7 @@ openSUSE 默认使用 [MirrorBrain](https://zh.opensuse.org/MirrorBrain) 技术
|
|||
|
||||
由于使用 MirrorBrain 需要从位于德国的 openSUSE 主服务器上获取元信息,所以若在使用默认软件源时获取元信息较慢,可以使用 TUNA 镜像软件源替换默认软件源。
|
||||
|
||||
### openSUSE Leap 15.0 或更新版本使用方法
|
||||
### openSUSE Leap 使用方法
|
||||
|
||||
禁用官方软件源
|
||||
|
||||
|
|
@ -26,12 +25,32 @@ sudo zypper mr -da
|
|||
|
||||
添加 TUNA 镜像源
|
||||
|
||||
```shell
|
||||
sudo zypper ar -fcg https://{{ site.hostname }}/opensuse/distribution/leap/\$releasever/repo/oss/ tuna-oss
|
||||
sudo zypper ar -fcg https://{{ site.hostname }}/opensuse/distribution/leap/\$releasever/repo/non-oss/ tuna-non-oss
|
||||
sudo zypper ar -fcg https://{{ site.hostname }}/opensuse/update/leap/\$releasever/oss/ tuna-update-oss
|
||||
sudo zypper ar -fcg https://{{ site.hostname }}/opensuse/update/leap/\$releasever/non-oss/ tuna-update-non-oss
|
||||
```
|
||||
<form class="form-inline">
|
||||
<div class="form-group">
|
||||
<label>选择你的Leap版本: </label>
|
||||
<select class="form-control release-select" data-template="#opensuse-template" data-target="#opensuse-content">
|
||||
<option data-release="15.0">15.0</option>
|
||||
<option data-release="15.1">15.1</option>
|
||||
<option data-release="15.2">15.2</option>
|
||||
<option data-release="15.3" selected>15.3</option>
|
||||
</select>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
{% raw %}
|
||||
<script id="opensuse-template" type="x-tmpl-markup">
|
||||
sudo zypper ar -fcg https://{%endraw%}{{ site.hostname }}{%raw%}/opensuse/distribution/leap/{{release_name}}/repo/oss/ tuna-oss
|
||||
sudo zypper ar -fcg https://{%endraw%}{{ site.hostname }}{%raw%}/opensuse/distribution/leap/{{release_name}}/repo/non-oss/ tuna-non-oss
|
||||
sudo zypper ar -fcg https://{%endraw%}{{ site.hostname }}{%raw%}/opensuse/update/leap/{{release_name}}/oss/ tuna-update-oss
|
||||
sudo zypper ar -fcg https://{%endraw%}{{ site.hostname }}{%raw%}/opensuse/update/leap/{{release_name}}/non-oss/ tuna-update-non-oss
|
||||
</script>
|
||||
{% endraw %}
|
||||
|
||||
<pre>
|
||||
<code id="opensuse-content">
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
|
||||
刷新软件源
|
||||
|
||||
|
|
@ -58,4 +77,4 @@ sudo zypper ar -fcg https://{{ site.hostname }}/opensuse/tumbleweed/repo/non-oss
|
|||
|
||||
```shell
|
||||
sudo zypper ref
|
||||
```
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in New Issue