Skip to content

Commit

Permalink
Update installation guide
Browse files Browse the repository at this point in the history
  • Loading branch information
STARRY-S committed Dec 12, 2023
1 parent 844d3fb commit 3c93b21
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 10 deletions.
30 changes: 25 additions & 5 deletions i18n/zh/docusaurus-plugin-content-docs/version-v1.7/01-install.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,35 @@ title: 安装指南

### Arch Linux

您可在 Arch Linux [AUR](https://aur.archlinux.org/packages/hangar-git) 仓库获取 `PKGBUILD`,在本地编译并安装 Hangar
您可在 Arch Linux [AUR](https://aur.archlinux.org/packages/hangar) 仓库获取 `PKGBUILD`,在本地编译并安装 Hangar

```sh
yay hangar-git
```
- 使用 [yay](https://github.com/Jguer/yay) AUR Helper 安装 Hangar:

```sh
# 从最新的 stable release tag 构建并安装 Hangar。
yay hangar
# 从最新的上游 git main 分支源码构建并安装 Hangar。
yay hangar-git
```

- 除此之外,您可以添加 [Open Build Service](https://download.opensuse.org/repositories/home:/StarryWang/Arch/x86_64/) 仓库以安装预构建的 Hangar 安装包。

1. 编辑 `/etc/pacman.conf` 添加自定义软件源:
```txt title="/etc/pacman.conf"
[home_StarryWang_Arch]
SigLevel = Never
Server = https://download.opensuse.org/repositories/home:/StarryWang/Arch/$arch
```
1. 安装 Hangar:
```sh
sudo pacman -Sy
sudo pacman -S hangar
```

### openSUSE

Hangar 可在 [Open Build Service](https://build.opensuse.org/package/show/home:StarryWang/Hangar) 获取
Hangar 可在 [Open Build Service](https://build.opensuse.org/package/show/home:StarryWang/Hangar) 获取

```sh
# openSUSE Tumbleweed
Expand Down
30 changes: 25 additions & 5 deletions versioned_docs/version-v1.7/01-install.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,35 @@ For more information about Hangar Docker Image, see [Hangar Docker Image](/docs/

### Arch Linux

You can obtain the `PKGBUILD` to build and install the latest Hangar binary file from the Arch Linux [AUR](https://aur.archlinux.org/packages/hangar-git) repository:
You can obtain the `PKGBUILD` to build and install the latest Hangar binary file from the Arch Linux [AUR](https://aur.archlinux.org/packages/hangar) repository.

```sh
yay hangar-git
```
- Install `hangar` by using the [yay](https://github.com/Jguer/yay) AUR helper:

```sh
# Build and install from the latest stable release tag.
yay hangar
# Build and install from the latest upstream main git branch.
yay hangar-git
```

- Or you can add the [Open Build Service](https://download.opensuse.org/repositories/home:/StarryWang/Arch/x86_64/) repository to install prebuilt hangar package.

1. Add custom repository in `/etc/pacman.conf`:
```txt title="/etc/pacman.conf"
[home_StarryWang_Arch]
SigLevel = Never
Server = https://download.opensuse.org/repositories/home:/StarryWang/Arch/$arch
```
1. Install hangar:
```sh
sudo pacman -Sy
sudo pacman -S hangar
```

### openSUSE

Hangar is available on [Open Build Service](https://build.opensuse.org/package/show/home:StarryWang/Hangar):
Hangar is available on [Open Build Service](https://build.opensuse.org/package/show/home:StarryWang/Hangar).

```sh
# openSUSE Tumbleweed
Expand Down

0 comments on commit 3c93b21

Please sign in to comment.