diff --git a/i18n/zh/docusaurus-plugin-content-docs/version-v1.7/01-install.md b/i18n/zh/docusaurus-plugin-content-docs/version-v1.7/01-install.md index 2770a228..8398f797 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/version-v1.7/01-install.md +++ b/i18n/zh/docusaurus-plugin-content-docs/version-v1.7/01-install.md @@ -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 diff --git a/versioned_docs/version-v1.7/01-install.md b/versioned_docs/version-v1.7/01-install.md index eb6d976b..55babaf8 100644 --- a/versioned_docs/version-v1.7/01-install.md +++ b/versioned_docs/version-v1.7/01-install.md @@ -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