2017-11-27 05:44:32 +08:00
|
|
|
|
---
|
|
|
|
|
date: "2016-12-01T16:00:00+02:00"
|
|
|
|
|
title: "套件安裝"
|
|
|
|
|
slug: "install-from-package"
|
2023-07-26 10:00:14 +08:00
|
|
|
|
sidebar_position: 20
|
2020-12-09 14:47:06 +08:00
|
|
|
|
toc: false
|
2017-11-27 05:44:32 +08:00
|
|
|
|
draft: false
|
Refactor docs (#23752)
This was intended to be a small followup for
https://github.com/go-gitea/gitea/pull/23712, but...here we are.
1. Our docs currently use `slug` as the entire URL, which makes
refactoring tricky (see https://github.com/go-gitea/gitea/pull/23712).
Instead, this PR attempts to make future refactoring easier by using
slugs as an extension of the section. (Hugo terminology)
- What the above boils down to is this PR attempts to use directory
organization as URL management. e.g. `usage/comparison.en-us.md` ->
`en-us/usage/comparison/`, `usage/packages/overview.en-us.md` ->
`en-us/usage/packages/overview/`
- Technically we could even remove `slug`, as Hugo defaults to using
filename, however at least with this PR it means `slug` only needs to be
the name for the **current file** rather than an entire URL
2. This PR adds appropriate aliases (redirects) for pages, so anything
on the internet that links to our docs should hopefully not break.
3. A minor nit I've had for a while, renaming `seek-help` to `support`.
It's a minor thing, but `seek-help` has a strange connotation to it.
4. The commits are split such that you can review the first which is the
"actual" change, and the second is added redirects so that the first
doesn't break links elsewhere.
---------
Signed-off-by: jolheiser <john.olheiser@gmail.com>
2023-04-28 11:33:41 +08:00
|
|
|
|
aliases:
|
|
|
|
|
- /zh-tw/install-from-package
|
2017-11-27 05:44:32 +08:00
|
|
|
|
menu:
|
|
|
|
|
sidebar:
|
|
|
|
|
parent: "installation"
|
|
|
|
|
name: "套件安裝"
|
2023-07-26 10:00:14 +08:00
|
|
|
|
sidebar_position: 20
|
2017-11-27 05:44:32 +08:00
|
|
|
|
identifier: "install-from-package"
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
# 從套件安裝
|
|
|
|
|
|
|
|
|
|
## Linux
|
|
|
|
|
|
2023-07-26 10:00:14 +08:00
|
|
|
|
目前尚未發佈任何 Linux 套件,如果我們發佈了,會直接更新此網頁。在這之前請先參考[執行檔安裝](installation/from-binary.md)方式。
|
2017-11-27 05:44:32 +08:00
|
|
|
|
|
|
|
|
|
## Windows
|
|
|
|
|
|
2020-06-03 14:11:26 +08:00
|
|
|
|
在 Windows 作業系統你可以透過 [Chocolatey](https://chocolatey.org/) 套件管理器安裝 [Gitea](https://chocolatey.org/packages/gitea) 套件:
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
choco install gitea
|
|
|
|
|
```
|
|
|
|
|
|
2023-07-26 10:00:14 +08:00
|
|
|
|
也可以參考[執行檔安裝](installation/from-binary.md)方式。
|
2017-11-27 05:44:32 +08:00
|
|
|
|
|
|
|
|
|
## macOS
|
|
|
|
|
|
2023-07-26 10:00:14 +08:00
|
|
|
|
目前我們只支援透過 `brew` 來安裝套件。假如您尚未使用 [Homebrew](http://brew.sh/),您就必須參考[執行檔安裝](installation/from-binary.md)方式。透過 `brew` 安裝 Gitea,您只需要執行底下指令:
|
2017-11-27 05:44:32 +08:00
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
brew tap go-gitea/gitea
|
|
|
|
|
brew install gitea
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## FreeBSD
|
|
|
|
|
|
|
|
|
|
下載 FreeBSD port `www/gitea` 套件。你可以安裝 pre-built 執行檔:
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
pkg install gitea
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
對於最新版本或想要自行編譯特定選項,請使用 [port 安裝](https://www.freebsd.org/doc/handbook/ports-using.html):
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
su -
|
|
|
|
|
cd /usr/ports/www/gitea
|
|
|
|
|
make install clean
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## 需要協助?
|
|
|
|
|
|
2020-02-26 01:36:45 +08:00
|
|
|
|
如果本頁中無法解決您的問題,請直接到 [Discord server](https://discord.gg/Gitea),在那邊可以快速得到協助。
|