freeCodeCamp/guide/chinese/go/installing-go/arch-linux/index.md

23 lines
655 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
title: Installing Go in Arch Linux using pacman
localeTitle: 使用pacman在Arch Linux中安装Go
---
### 使用pacman在Arch Linux中安装Go
使用Arch Linux Package Managerpacman是安装Go的最简单方法。基于Arch Linux非常快速地提供新软件版本的理念您将获得最新版本的go。 在安装go软件包之前必须使系统保持最新状态。
```sh
$ sudo pacman -Syu
$ sudo pacman -S go
```
#### 检查go的安装和版本
要检查go是否已成功安装请使用
```sh
$ go version
> go version go2.11.1 linux/amd64
```
这将向控制台打印go的版本同时确保安装顺利进行。