Skip to content

Commit

Permalink
Fix template references
Browse files Browse the repository at this point in the history
  • Loading branch information
weearc committed Jun 3, 2024
1 parent a8f3a6d commit 017aa8e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions contents/opensuse.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,9 @@ openSUSE 默认启用了 [RIS](https://en.opensuse.org/openSUSE:Standards_Reposi

查看需要恢复的 repo 文件:

<CodeBlock>
```shell
ls -la /etc/zypp/repos.d/*.rpmsave
```
</CodeBlock>

还原 repo 文件:

Expand Down
6 changes: 3 additions & 3 deletions contents/packman.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -38,23 +38,23 @@ openSUSE 非官方社区软件源,主要收录允许自由分发但存在专

<CodeBlock>
```bash
sudo zypper ref
{{sudo}}zypper ref
```
</CodeBlock>

编辑后需要使用如下命令完成对应软件包的来源替换:

<CodeBlock>
```bash
sudo zypper dup --recommends --allow-vendor-change
{{sudo}}zypper dup --recommends --allow-vendor-change
```
</CodeBlock>

部分情况需要使用 `--allow-downgrade` 参数允许对应软件包降级安装,即:

<CodeBlock>
```bash
sudo zypper dup --recommends --allow-vendor-change --allow-downgrade
{{sudo}}zypper dup --recommends --allow-vendor-change --allow-downgrade
```
</CodeBlock>

Expand Down

0 comments on commit 017aa8e

Please sign in to comment.