如何在 Manjaro 和其他 Arch Linux 衍生品上安装 Discord 客户端
Discord
![](/data/attachment/album/202207/23/181625i62zdef7iufup2e6.jpg)


[Discord](https://discord.com/) 是一个跨平台的应用，可用于语音通话、视频通话、文本消息，以及分享媒体和文件。


它在游戏玩家和主播中非常流行。虽然，许多开源项目已经开始使用它来主持他们的社区讨论。你可以找到这类开源社区的 [官方 Discord 服务器](https://discord.com/open-source)。


Discord 可以直接从你的网页浏览器访问。安装官方桌面客户端可以让你获得系统通知和集中交流，而不是在多个打开的标签中摸索 Discord 标签。


虽然 Discord 为 Ubuntu 提供了 Deb 文件，但在 Arch Linux 上却没有这样的即用型软件包。


别担心。在本教程中，我将向你展示两种在 [Arch Linux](https://archlinux.org/) 及其衍生版本上安装 Discord 的方法。


* 通过 [Pacman](https://archlinux.org/pacman/) 安装 Discord（命令行方法，对所有基于 Arch 的发行版有效）。
* 通过 [Pamac](https://gitlab.manjaro.org/applications/pamac) 安装 Discord（GUI 方法，对 Manjaro 和其他一些使用 Pamac 工具的基于 Arch 的发行版有效）。


### 方法 1: 通过 pacman 命令安装 Discord


首先，更新你的系统，因为它是一个滚动发布的版本，[不支持部分升级](https://wiki.archlinux.org/title/System_maintenance#Partial_upgrades_are_unsupported)。


在终端输入以下 [pacman 命令](https://itsfoss.com/pacman-command/) 来 [更新你的 Arch Linux 系统](https://itsfoss.com/update-arch-linux/)。



```
sudo pacman -Syu

```

现在你可以通过以下命令安装 Discord 包。



```
sudo pacman -S discord

```

安装后，只需从应用菜单中启动应用，然后登录就可以开始使用 Discord。


![Discord client in Arch Linux](/data/attachment/album/202207/23/181648ug9aa8d14dizja0g.png)


**如果你想安装 Discord 的每日构建版本** 来测试即将到来的新功能，请使用以下命令。请注意，它可能并不稳定，所以如果你想要这个版本，请再考虑一下。



```
sudo pacman -S discord-canary

```

#### 删除 Discord


如果你想删除 Discord，使用下面的命令来删除它以及它的依赖关系和配置文件：



```
sudo pacman -Rns discord

```

如果你选择的是每日构建版本，请使用以下命令将其删除：



```
sudo pacman -Rns discord-canary

```

这很不错。现在对于不喜欢使用终端的人来说，有一个替代方案。我将在下一节讨论这个问题。


### 方法 2：通过 Pamac 安装 Discord


如果你使用 Arch Linux 的衍生产品，如 [Manjaro Linux](https://manjaro.org/)、[Garuda Linux](https://garudalinux.org/) 等，你就有一个叫做 Pamac 的图形化软件中心。


有了这个图形化的工具，你可以轻松地安装新的应用程序或删除现有的应用，而不必进入终端。


从应用程序菜单中启动 Pamac（添加/删除软件）。


![pamac menu](/data/attachment/album/202207/23/181648wc3vvbzj3xahkvh2.png)


点击“<ruby> 更新 <rt>  Updates </rt></ruby>”来更新你的系统。


![pamac update](/data/attachment/album/202207/23/181648bnegc9ffcq0rrxc0.png)


现在点击“<ruby> 浏览 <rt>  Browse </rt></ruby>”，使用左上方的搜索按钮搜索 “discord”。然后，选择软件包并点击“<ruby> 应用 <rt>  Apply </rt></ruby>”来安装。


![Installing Discord from Pamac](/data/attachment/album/202207/23/181649e1hfz1z8wwlw61ff.png)


你可以用 Pamac 来卸载软件包，就像你安装它一样。


我希望这个关于在基于 Arch 的 Linux 发行版上安装 Discord 的快速技巧对你有帮助。如果你有任何问题或建议，请告诉我。




---


via: <https://itsfoss.com/install-discord-arch-manjaro/>


作者：[Anuj Sharma](https://itsfoss.com/author/anuj/) 选题：[lkxed](https://github.com/lkxed) 译者：[geekpi](https://github.com/geekpi) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
![Warp Terminal](/assets/images/warp-terminal.webp)


![Warp Terminal](/assets/images/warp-terminal.webp)

[Discord](https://discord.com/?ref=itsfoss.com) is a cross-platform application that can be used for voice calling, video calling, text messaging, and sharing media and files.

It is extremely popular among gamers and streamers. Although, many open source projects have started using it for hosting their community discussion. You can find [official Discord servers](https://discord.com/open-source?ref=itsfoss.com) for such open source communities.

Discord can be accessed straight from your web browser. Installing the official desktop client gives you system notifications and focused communication rather than fumbling for the Discord tab among multiple opened tabs.

While Discord provides Deb files for Ubuntu, there is no such ready-to-use package for Arch Linux.

Fret not. In this tutorial, I will show you two methods to install Discord on [Arch Linux](https://archlinux.org/?ref=itsfoss.com) and its derivatives.

- Installing Discord via
[Pacman](https://archlinux.org/pacman/?ref=itsfoss.com)(CLI method, valid for all Arch-based distributions) - Installing Discord via
[Pamac](https://gitlab.manjaro.org/applications/pamac?ref=itsfoss.com)(GUI method, valid for Manjaro and some other Arch-based distros that use Pamac tool)

**Non-FOSS Warning!**Discord is not open source software. Many Linux users use it for interacting with various communities and hence we have covered the installation steps here.

## Method 1: Installing Discord via pacman command

First, update your system as it is a rolling release distribution and [do not support partial upgrades](https://wiki.archlinux.org/title/System_maintenance?ref=itsfoss.com#Partial_upgrades_are_unsupported).

Enter the following [pacman command](https://itsfoss.com/pacman-command/) in the terminal to [update your Arch Linux system](https://itsfoss.com/update-arch-linux/).

`sudo pacman -Syu`


Now you can install Discord package via the following command.

`sudo pacman -S discord`


Once installed, just launch the application from the application menu and login to start using Discord.

![discord](https://itsfoss.com/content/images/wordpress/2022/06/discord.png)

**If you want to install the Nightly version of Discord** to test upcoming new features, use the following command. Do note that it may not be stable so think again if you want this version.

`sudo pacman -S discord-canary`


### Removing Discord

If you want to remove Discord, use the command below to remove it along with its dependencies and configuration files:

`sudo pacman -Rns discord`


If you had opted for the Nightly version, remove it using:

`sudo pacman -Rns discord-canary`


That’s neat. Now for folks who dislike using the terminal, there is an alternative. I will discuss that in the next section.

## Method 2: Installing Discord via Pamac

If you are using Arch Linux derivatives like [Manjaro Linux](https://manjaro.org/?ref=itsfoss.com), [Garuda Linux](https://garudalinux.org/?ref=itsfoss.com), etc you have a graphical software center called Pamac.

With this graphical tool, you can easily install new applications or remove existing ones without going into the terminal.

Launch Pamac (Add/Remove Software) from the application menu.

![pamac menu](https://itsfoss.com/content/images/wordpress/2022/06/pamac-menu.png)

Click on Updates to update your system.

![pamac update](https://itsfoss.com/content/images/wordpress/2022/06/pamac-update.png)

Now click on Browse and search for discord using the search button on the top left. Then, select the package and click apply to install.

![pamac discord](https://itsfoss.com/content/images/wordpress/2022/06/pamac-discord.png)

You can use Pamac to uninstall the package the same way you installed it.

And if you are interested, feel free to check and use some [open source bots for your Discord server](https://itsfoss.com/open-source-discord-bots/).

I hope you find this quick tip on installing Discord on Arch-based Linux distros helpful. Let me know if you have any questions or suggestions.