-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
docs: add various ways to install from package #18120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,108 @@ | ||
--- | ||
date: "2016-12-01T16:00:00+02:00" | ||
title: "选择包安装" | ||
title: "使用包管理器安装" | ||
slug: "install-from-package" | ||
weight: 10 | ||
toc: false | ||
draft: false | ||
menu: | ||
sidebar: | ||
parent: "installation" | ||
name: "选择包安装" | ||
name: "使用包管理器安装" | ||
weight: 20 | ||
identifier: "install-from-package" | ||
--- | ||
|
||
# 使用包安装 | ||
# 使用包管理器安装 | ||
|
||
## Linux | ||
**目录** | ||
|
||
目前还没有对应的Linux安装包发布,如果我们发布了,我们将更新本页面。当前你可以查看 [从二进制安装]({{< relref "from-binary.zh-cn.md" >}})。 | ||
{{< toc >}} | ||
|
||
## Alpine Linux | ||
|
||
Gitea 已经包含在 Alpine Linux 的[社区存储库](https://pkgs.alpinelinux.org/packages?name=gitea&branch=edge)中,版本与 Gitea 官方保持同步。 | ||
|
||
```sh | ||
apk add gitea | ||
``` | ||
|
||
## Arch Linux | ||
|
||
Gitea 已经在滚动发布发行版的官方[社区存储库](https://www.archlinux.org/packages/community/x86_64/gitea/)中,版本与 Gitea 官方保持同步。 | ||
|
||
```sh | ||
pacman -S gitea | ||
``` | ||
|
||
## Arch Linux ARM | ||
|
||
官方支持 [aarch64](https://archlinuxarm.org/packages/aarch64/gitea), [armv7h](https://archlinuxarm.org/packages/armv7h/gitea) 和 [armv6h](https://archlinuxarm.org/packages/armv6h/gitea) 架构。 | ||
|
||
```sh | ||
pacman -S gitea | ||
``` | ||
|
||
## Canonical Snap | ||
|
||
目前 Gitea 已在 Snap Store 中发布,名称为 [gitea](https://snapcraft.io/gitea)。 | ||
|
||
```sh | ||
snap install gitea | ||
``` | ||
|
||
## SUSE/openSUSE | ||
|
||
OpenSUSE 构建服务为 [openSUSE 和 SLE](https://software.opensuse.org/download/package?package=gitea&project=devel%3Atools%3Ascm) | ||
提供包,你可以在开发软件配置管理存储库中找到它们。 | ||
|
||
## Windows | ||
|
||
目前还没有对应的Windows安装包发布,如果我们发布了,我们将更新本页面。我们计划使用 `MSI` 安装器或者 [Chocolatey](https://chocolatey.org/)来制作安装包。当前你可以查看 [从二进制安装]({{< relref "from-binary.zh-cn.md" >}})。 | ||
目前你可以通过 [Chocolatey](https://chocolatey.org/) 来安装 [Gitea](https://chocolatey.org/packages/gitea)。 | ||
|
||
```sh | ||
choco install gitea | ||
``` | ||
|
||
你也可以 [从二进制安装]({{< relref "from-binary.zh-cn.md" >}}) 。 | ||
|
||
## macOS | ||
|
||
macOS 平台下当前我们仅支持通过 `brew` 来安装。如果您没有安装 [Homebrew](http://brew.sh/),你也可以查看 [从二进制安装]({{< relref "from-binary.zh-cn.md" >}})。在你安装了 `brew` 之后, 你可以执行以下命令: | ||
macOS 平台下当前我们仅支持通过 `brew` 来安装。如果你没有安装 [Homebrew](http://brew.sh/),你也可以查看 [从二进制安装]({{< relref "from-binary.zh-cn.md" >}})。在你安装了 `brew` 之后, 你可以执行以下命令: | ||
|
||
``` | ||
brew tap go-gitea/gitea | ||
brew install gitea | ||
``` | ||
|
||
## FreeBSD | ||
|
||
可以使用 Gitea 的 FreeBSD port `www/gitea`。 请安装预构建的二进制包: | ||
|
||
``` | ||
pkg install gitea | ||
``` | ||
|
||
对于最新版本,或使用自定义选项构建 port,请 | ||
[从 port 安装](https://www.freebsd.org/doc/handbook/ports-using.html): | ||
|
||
``` | ||
su - | ||
cd /usr/ports/www/gitea | ||
make install clean | ||
``` | ||
|
||
该 port 使用标准的 FreeBSD 文件系统布局:配置文件在 `/usr/local/etc/gitea` 目录中, | ||
模板、选项、插件和主题在 `/usr/local/share/gitea` 目录中,启动脚本在 `/usr/local/etc/rc.d/gitea` 目录中。 | ||
|
||
要使 Gitea 作为服务运行,请运行 `sysrc gitea_enable=YES` 并使用 `service gitea start` 命令启动它。 | ||
|
||
## 第三方 | ||
|
||
如果这里没有找到你喜欢的包管理器,可以使用 Gitea 第三方软件包。这里有一个完整的列表: [awesome-gitea](https://gitea.com/gitea/awesome-gitea/src/branch/master/README.md#user-content-packages)。 | ||
|
||
如果你知道其他 Gitea 第三方软件包,请发送 PR 来添加它。 | ||
|
||
## 需要帮助? | ||
|
||
如果从本页中没有找到你需要的内容,请访问 [帮助页面]({{< relref "seek-help.zh-cn.md" >}}) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.