yay README

The project's README from github.com/Jguer/yay. As one markdown file: README.md.

yay yay-bin yay-git AUR votes GitHub license

yay

Yet Another Yogurt - An AUR Helper Written in Go

Help translate yay: Transifex

Features

asciicast

asciicast

Installation

If you are migrating from another AUR helper, you can simply install yay with that helper.

[!WARNING]
We are using sudo in these examples. You can switch that out for a different privilege escalation tool.

Source

The initial installation of yay can be done by cloning the PKGBUILD and building with makepkg:

We make sure we have the base-devel package group installed.

sudo pacman -S --needed git base-devel
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si

If you want to do all of this at once, we can chain the commands like so:

sudo pacman -S --needed git base-devel && git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -si

Binary

If you do not want to compile yay yourself you can use the builds generated by GitHub Actions.

sudo pacman -S --needed git base-devel
git clone https://aur.archlinux.org/yay-bin.git
cd yay-bin
makepkg -si

If you want to do all of this at once, we can chain the commands like so:

sudo pacman -S --needed git base-devel && git clone https://aur.archlinux.org/yay-bin.git && cd yay-bin && makepkg -si

Other distributions

If you're using Manjaro or another distribution that packages yay you can simply install yay using pacman (as root):

pacman -S --needed git base-devel yay

[!WARNING] distributions sometimes lag updating yay on their repositories.

First Use

Development packages upgrade

Examples of Custom Operations

Command Description
yay Alias to yay -Syu.
yay <Search Term> Present package-installation selection menu.
yay -Bi <dir> Install dependencies and build a local PKGBUILD.
yay -G <AUR Package> Download PKGBUILD from ABS or AUR. (yay v12.0+)
yay -Gp <AUR Package> Print to stdout PKGBUILD from ABS or AUR.
yay -Ps Print system statistics.
yay -Syu --devel Perform system upgrade, but also check for development package updates.
yay -Wu <AUR Package> Unvote for package (Requires setting AUR_USERNAME and AUR_PASSWORD environment variables) (yay v11.3+)
yay -Wv <AUR Package> Vote for package (Requires setting AUR_USERNAME and AUR_PASSWORD environment variables). (yay v11.3+)
yay -Y --combinedupgrade --save Make combined upgrade the default mode.
yay -Y --gendb Generate development package database used for devel update.
yay -Yc Clean unneeded dependencies.

Frequently Asked Questions

Support

All support related to yay should be requested via GitHub issues. Since yay is not officially supported by Arch Linux, support should not be sought out on the forums, AUR comments or other official channels.

A broken AUR package should be reported as a comment on the package's AUR page. A package may only be considered broken if it fails to build with makepkg.

Reports should be made using makepkg and include the full output as well as any other relevant information. Never make reports using yay or any other external tools.

Images

Other AUR helpers/tools

yay (Jguer/yay)

Searching Database…

13.8K ·GitHub
这是什么?yay 是一个用 Go 编写的 AUR(Arch 用户软件仓库)辅助工具。它封装了 pacman,让你只用一条命令就能搜索、安装和升级官方仓库软件包与 AUR 软件包。
它是 pacman 的替代品,还是对 pacman 的封装?它是 pacman 和 makepkg 的命令行封装,也就是前端工具。在常规的 pacman 操作流程之上,它增加了 AUR 支持、依赖解析以及 PKGBUILD 下载功能。
我该如何安装 yay?你可以克隆 PKGBUILD 并用 makepkg 构建(需先安装 base-devel 软件包组),也可以使用 GitHub Actions 提供的预编译二进制文件;如果你使用 Manjaro 或其他已打包 yay 的发行版,直接用 pacman 安装即可。
构建 yay 之前需要先安装什么吗?需要先安装 base-devel 软件包组,因为 yay 通过 makepkg 构建;安装和日常操作时,还需要使用 sudo(或其他提权工具)。
对于 -git 软件包,yay 能否总是检测到 AUR 软件包的更新?不能。yay 对开发版(-git)软件包依赖哈希缓存。如果某个软件包从未通过 yay 的开发版跟踪功能安装,那么在你运行 yay -Y --gendb 之前,它不会提示更新。
它只能在 Arch Linux 上运行吗?是的。它专为 Arch Linux 及基于 Arch 的发行版(如 Manjaro)构建,因为它依赖 pacman 和 AUR。
如何让 yay 检查开发版软件包的更新?先运行一次 yay -Y --gendb 以生成开发版软件包数据库,然后用 yay -Syu --devel 检查更新;如果想让该设置永久生效,可以使用 yay -Y --devel --save。
我能用 yay 为 AUR 软件包投票或取消投票吗?可以。用 yay -Wv 投票,用 yay -Wu 取消投票,但需要先设置 AURUSERNAME 和 AURPASSWORD 环境变量。
出问题时去哪里获取支持?只能通过 GitHub Issues 获取支持,因为 Arch Linux 官方并不支持 yay;AUR 软件包本身的问题则应在该软件包的 AUR 评论页面上报告。
有哪些与 yay 类似的 AUR 辅助工具?README 中列出的相关 AUR 辅助工具有 paru、aurutils 和 pikaur。
What are similar projects?veet, distrobox, microdnf, gvm, moji, xmake, openvpn-install, tig
Creator
Jguer
Size
8.6 MB
Stars
13.8K
Age
10y
Commits · 90 Days