mirror of
https://github.com/LCTT/TranslateProject.git
synced 2024-12-26 21:30:55 +08:00
translating
This commit is contained in:
parent
0d69f00665
commit
78f1a2f83a
@ -1,162 +0,0 @@
|
||||
[#]: subject: "How to Install yay AUR Helper in Arch Linux [Beginner’s Guide]"
|
||||
[#]: via: "https://www.debugpoint.com/install-yay-arch/"
|
||||
[#]: author: "Arindam https://www.debugpoint.com/author/admin1/"
|
||||
[#]: collector: "lkxed"
|
||||
[#]: translator: "geekpi"
|
||||
[#]: reviewer: " "
|
||||
[#]: publisher: " "
|
||||
[#]: url: " "
|
||||
|
||||
How to Install yay AUR Helper in Arch Linux [Beginner’s Guide]
|
||||
======
|
||||
This beginner’s guide explains the steps to install the Yay AUR helper in Arch Linux.
|
||||
|
||||
The yay is an abbreviation of ‘Yet Another Yogurt’. It is technically a [pacman][1] wrapper and AUR helper written in [Go programming languages][2]. It is the most popular [Arch User Repository (AUR)][3] helper available today. With Yay, you can take advantage of a vast Arch User Repository of packages and easily compile and install any software.
|
||||
|
||||
It automates many package management tasks such as searching, resolving dependencies on the fly, compiling and building packages, and, of course, publishing your packages for AUR.
|
||||
|
||||
Let’s look at how you can install Yay in Arch Linux or any Arch-based distro such as Manjaro. Once you install Arch Linux, you can install packages via pacman package manager from three main Arch official repo. But Yay is not installed by default after a fresh Arch Linux installation. Hence you need to install it to take advantage of AUR manually.
|
||||
|
||||
This guide covers the below topics.
|
||||
|
||||
* Install yay in Arch Linux
|
||||
* Install yay in Manjaro
|
||||
* How to use yay to install packages in Arch Linux and Manjaro
|
||||
* Some yay tips
|
||||
|
||||
### Install yay in Arch Linux
|
||||
|
||||
#### Pre-requisite
|
||||
|
||||
Open a terminal and run the below commands. Provide admin password when prompted. These steps require the [base-devel][4] package and git package for compilation and installation.
|
||||
|
||||
```
|
||||
sudo pacman -S base-devel
|
||||
```
|
||||
|
||||
```
|
||||
sudo pacman -S git
|
||||
```
|
||||
|
||||
![Install git][5]
|
||||
|
||||
#### Install yay
|
||||
|
||||
The yay package has two versions in the Arch repository, as follows.
|
||||
|
||||
[yay][6] – stable version[yay-git][7]– development version
|
||||
|
||||
For this guide, I have used the stable version. Now, go to “/opt” directory and clone the git repo.
|
||||
|
||||
```
|
||||
cd /optsudo git clone https://aur.archlinux.org/yay.git
|
||||
```
|
||||
|
||||
![clone the yay repo][8]
|
||||
|
||||
Change the owner of the source directory. Replace “debugpoint” with your user name.
|
||||
|
||||
```
|
||||
sudo chown -R debugpoint:users ./yay
|
||||
```
|
||||
|
||||
If you are unaware of the user or group, you can find the user and groups using the example below.
|
||||
|
||||
```
|
||||
id debugpoint
|
||||
```
|
||||
|
||||
Go to the directory and compile.
|
||||
|
||||
```
|
||||
cd yay
|
||||
```
|
||||
|
||||
```
|
||||
makepkg -si
|
||||
```
|
||||
|
||||
This completes the installation for yay in Arch Linux.
|
||||
|
||||
![Install yay in Arch Linux][9]
|
||||
|
||||
### Install in yay in Manjaro
|
||||
|
||||
If you are using Manjaro Linux, the yay package is available in the community repo. You can easily install using the following commands in Manjaro.
|
||||
|
||||
```
|
||||
pacman -Syyupacman -S yay
|
||||
```
|
||||
|
||||
Now, let’s look at how you can install any package using Yay and some basic yay usage.
|
||||
|
||||
### How to use yay to install packages
|
||||
|
||||
The first search on the AUR website to install any application to get the package name. For example, to install [featherpad][10] text editor, run the below command.
|
||||
|
||||
```
|
||||
yay -S featherpad
|
||||
```
|
||||
|
||||
After installation, you can find the application launcher in the application menu.
|
||||
|
||||
![Install a sample application (featherpad) using yay][11]
|
||||
|
||||
### Some yay tips
|
||||
|
||||
You can also do many tweaks and system operations using yay. Some of the examples are below.
|
||||
|
||||
**Refresh the system packages and upgrade:**
|
||||
|
||||
```
|
||||
yay -Syu
|
||||
```
|
||||
|
||||
**Use the development versions of packages and upgrade (be careful while running this command)**:
|
||||
|
||||
```
|
||||
yay -Syu --devel --timeupdate
|
||||
```
|
||||
|
||||
**Remove any packages (for example, featherpad)**:
|
||||
|
||||
```
|
||||
yay -Rns featherpad
|
||||
```
|
||||
|
||||
**Get a quick system stat:**
|
||||
|
||||
![system stat using yay][12]
|
||||
|
||||
```
|
||||
yay -Ps
|
||||
```
|
||||
|
||||
I hope this beginner’s guide helped you install yay in [Arch Linux][13], then use yay for installing packages, and perform different system actions.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: https://www.debugpoint.com/install-yay-arch/
|
||||
|
||||
作者:[Arindam][a]
|
||||
选题:[lkxed][b]
|
||||
译者:[译者ID](https://github.com/译者ID)
|
||||
校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
|
||||
|
||||
[a]: https://www.debugpoint.com/author/admin1/
|
||||
[b]: https://github.com/lkxed
|
||||
[1]: https://wiki.archlinux.org/index.php/pacman
|
||||
[2]: https://golang.org/
|
||||
[3]: https://wiki.archlinux.org/index.php/Arch_User_Repository
|
||||
[4]: https://aur.archlinux.org/packages/meta-group-base-devel/
|
||||
[5]: https://www.debugpoint.com/wp-content/uploads/2021/01/Install-git-1024x291.png
|
||||
[6]: https://aur.archlinux.org/packages/yay/
|
||||
[7]: https://aur.archlinux.org/packages/yay-git/
|
||||
[8]: https://www.debugpoint.com/wp-content/uploads/2021/01/clone-the-yay-repo-1024x271.png
|
||||
[9]: https://www.debugpoint.com/wp-content/uploads/2021/01/Install-yay-in-Arch-Linux-1024x460.png
|
||||
[10]: https://aur.archlinux.org/packages/featherpad-git/
|
||||
[11]: https://www.debugpoint.com/wp-content/uploads/2021/01/Install-a-sample-application-featherpad-using-yay-1024x620.png
|
||||
[12]: https://www.debugpoint.com/wp-content/uploads/2021/01/system-stat-using-yay.png
|
||||
[13]: https://www.debugpoint.com/tag/arch-linux/
|
@ -0,0 +1,163 @@
|
||||
[#]: subject: "How to Install yay AUR Helper in Arch Linux [Beginner’s Guide]"
|
||||
[#]: via: "https://www.debugpoint.com/install-yay-arch/"
|
||||
[#]: author: "Arindam https://www.debugpoint.com/author/admin1/"
|
||||
[#]: collector: "lkxed"
|
||||
[#]: translator: "geekpi"
|
||||
[#]: reviewer: " "
|
||||
[#]: publisher: " "
|
||||
[#]: url: " "
|
||||
|
||||
如何在 Arch Linux 中安装 yay AUR 助手(初学者指南)
|
||||
======
|
||||
这个初学者指南解释了在 Arch Linux 中安装 Yay AUR 助手的步骤。
|
||||
|
||||
yay 是 “Yet Another Yogurt” 的缩写。从技术上讲,它是用 [Go 编程语言][2]编写的 [pacman][1] 封装器和 AUR 助手。它是当今最流行的 [Arch 用户仓库 (AUR)][3]助手。使用 Yay,你可以利用庞大的 Arch 用户软件包库并轻松编译和安装任何软件。
|
||||
|
||||
它可以自动执行许多包管理任务,例如搜索、动态解决依赖关系、编译和构建包,当然还有在 AUR 发布包。
|
||||
|
||||
让我们看看如何在 Arch Linux 或任何基于 Arch 的发行版(如 Manjaro)中安装 Yay。安装 Arch Linux 后,你可以通过 pacman 包管理器从三个主要的 Arch 官方仓库安装包。但是在全新的 Arch Linux 安装后,默认情况下不会安装 Yay。因此,你需要手动安装它以利用 AUR。
|
||||
|
||||
本指南涵盖以下主题。
|
||||
|
||||
* 在 Arch Linux 中安装 yay
|
||||
* 在 Manjaro 中安装 yay
|
||||
* 如何在 Arch Linux 和 Manjaro 中使用 yay 安装包
|
||||
* 一些 yay 的提示
|
||||
|
||||
### 在 Arch Linux 中安装 yay
|
||||
|
||||
#### 先决条件
|
||||
|
||||
打开终端并运行以下命令。出现提示时提供管理员密码。这些步骤需要 [base-devel][4] 包和 git 包进行编译和安装。
|
||||
|
||||
```
|
||||
sudo pacman -S base-devel
|
||||
```
|
||||
|
||||
```
|
||||
sudo pacman -S git
|
||||
```
|
||||
|
||||
![Install git][5]
|
||||
|
||||
#### 安装 yay
|
||||
|
||||
yay 包在 Arch 仓库中有两个版本,如下所示。
|
||||
|
||||
[yay][6] – 稳定版
|
||||
[yay-git][7]– 开发版
|
||||
|
||||
对于本指南,我使用了稳定版。现在,进入 “/opt” 目录并克隆 git 仓库。
|
||||
|
||||
```
|
||||
cd /optsudo git clone https://aur.archlinux.org/yay.git
|
||||
```
|
||||
|
||||
![clone the yay repo][8]
|
||||
|
||||
更改源目录的所有者。将 “debugpoint” 替换为你的用户名。
|
||||
|
||||
```
|
||||
sudo chown -R debugpoint:users ./yay
|
||||
```
|
||||
|
||||
如果你不知道用户或组,可以使用以下示例查找用户和组。
|
||||
|
||||
```
|
||||
id debugpoint
|
||||
```
|
||||
|
||||
进入目录并编译。
|
||||
|
||||
```
|
||||
cd yay
|
||||
```
|
||||
|
||||
```
|
||||
makepkg -si
|
||||
```
|
||||
|
||||
这样就完成了 Arch Linux 中 yay 的安装。
|
||||
|
||||
![Install yay in Arch Linux][9]
|
||||
|
||||
### 在 Manjaro 中安装 yay
|
||||
|
||||
如果你使用 Manjaro Linux,yay 包可以在社区仓库中找到。你可以在 Manjaro 中使用以下命令轻松安装。
|
||||
|
||||
```
|
||||
pacman -Syyupacman -S yay
|
||||
```
|
||||
|
||||
现在,让我们看看如何使用 Yay 安装任何软件包以及一些基本的 yay 用法。
|
||||
|
||||
### 如何使用 yay 安装包
|
||||
|
||||
首先在 AUR 网站上搜索安装任何应用以获取包名。例如,要安装 [featherpad][10] 文本编辑器,请运行以下命令。
|
||||
|
||||
```
|
||||
yay -S featherpad
|
||||
```
|
||||
|
||||
安装后,你可以在应用菜单中找到应用启动器。
|
||||
|
||||
![Install a sample application (featherpad) using yay][11]
|
||||
|
||||
### 一些 yay 的技巧
|
||||
|
||||
你还可以使用 yay 进行许多调整和系统操作。下面是一些示例。
|
||||
|
||||
**刷新系统包并升级**:
|
||||
|
||||
```
|
||||
yay -Syu
|
||||
```
|
||||
|
||||
**使用包的开发版本并升级(运行此命令时要小心)**:
|
||||
|
||||
```
|
||||
yay -Syu --devel --timeupdate
|
||||
```
|
||||
|
||||
**删除任何包(例如,featherpad)**:
|
||||
|
||||
```
|
||||
yay -Rns featherpad
|
||||
```
|
||||
|
||||
**快速获取系统统计信息**:
|
||||
|
||||
![system stat using yay][12]
|
||||
|
||||
```
|
||||
yay -Ps
|
||||
```
|
||||
|
||||
我希望这个初学者指南能帮助你在 [Arch Linux][13] 中安装 yay,然后使用 yay 安装包,并执行不同的系统操作。
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: https://www.debugpoint.com/install-yay-arch/
|
||||
|
||||
作者:[Arindam][a]
|
||||
选题:[lkxed][b]
|
||||
译者:[geekpi](https://github.com/geekpi)
|
||||
校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
|
||||
|
||||
[a]: https://www.debugpoint.com/author/admin1/
|
||||
[b]: https://github.com/lkxed
|
||||
[1]: https://wiki.archlinux.org/index.php/pacman
|
||||
[2]: https://golang.org/
|
||||
[3]: https://wiki.archlinux.org/index.php/Arch_User_Repository
|
||||
[4]: https://aur.archlinux.org/packages/meta-group-base-devel/
|
||||
[5]: https://www.debugpoint.com/wp-content/uploads/2021/01/Install-git-1024x291.png
|
||||
[6]: https://aur.archlinux.org/packages/yay/
|
||||
[7]: https://aur.archlinux.org/packages/yay-git/
|
||||
[8]: https://www.debugpoint.com/wp-content/uploads/2021/01/clone-the-yay-repo-1024x271.png
|
||||
[9]: https://www.debugpoint.com/wp-content/uploads/2021/01/Install-yay-in-Arch-Linux-1024x460.png
|
||||
[10]: https://aur.archlinux.org/packages/featherpad-git/
|
||||
[11]: https://www.debugpoint.com/wp-content/uploads/2021/01/Install-a-sample-application-featherpad-using-yay-1024x620.png
|
||||
[12]: https://www.debugpoint.com/wp-content/uploads/2021/01/system-stat-using-yay.png
|
||||
[13]: https://www.debugpoint.com/tag/arch-linux/
|
Loading…
Reference in New Issue
Block a user