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 — это помощник для AUR (Arch User Repository), написанный на Go. Он оборачивает pacman и позволяет одной командой искать, устанавливать и обновлять как пакеты из официальных репозиториев, так и пакеты из AUR.
Это замена pacman или обёртка над ним?Это CLI-обёртка над pacman и makepkg: она добавляет поддержку AUR, разрешение зависимостей и загрузку PKGBUILD поверх обычной работы с pacman.
Как установить yay?Склонируйте PKGBUILD и соберите его через makepkg (после установки группы base-devel), используйте готовый бинарный файл из GitHub Actions или, если вы на Manjaro или другом дистрибутиве, который его пакетирует, просто установите его через pacman.
Нужно ли что-то установить перед сборкой yay?Нужна установленная группа пакетов base-devel, так как сборка идёт через makepkg. Кроме того, при установке и работе понадобится sudo (или другой инструмент повышения привилегий).
Будет ли yay всегда находить обновления пакетов AUR для -git?Нет. Для пакетов разработки (-git) yay использует кеш хешей. Если пакет никогда не устанавливался через отслеживание devel-пакетов в yay, он не будет предлагать обновление, пока вы не выполните yay -Y --gendb.
Работает ли это только на Arch Linux?Да, оно создано специально для Arch Linux и дистрибутивов на его основе (например, Manjaro), так как зависит от pacman и AUR.
Как заставить yay проверять обновления пакетов разработки?Выполните yay -Y --gendb один раз, чтобы построить базу данных пакетов разработки, затем используйте yay -Syu --devel для проверки обновлений или yay -Y --devel --save, чтобы сделать это постоянным.
Можно ли голосовать за пакеты AUR или отменять голос через yay?Да, с помощью yay -Wv можно проголосовать, а yay -Wu — отменить голос. Для этого нужно задать переменные окружения AURUSERNAME и AURPASSWORD.
Где получить поддержку, если что-то сломалось?Поддержка осуществляется только через GitHub issues, так как yay официально не поддерживается Arch Linux. О сломанных пакетах AUR нужно сообщать на странице комментариев к самому пакету в AUR.
Какие другие помощники AUR похожи на yay?В README перечислены paru, aurutils и pikaur как родственные помощники и инструменты для AUR.
What are similar projects?veet, distrobox, microdnf, gvm, moji, xmake, openvpn-install, dep
Creator
Jguer
Size
8.6 MB
Stars
13.8K
Age
10y
Commits · 90 Days