- How to Install Yay AUR Helper in Arch Linux and Manjaro
- Installing Yay AUR Helper in Arch Linux and Manjaro
- How to Use Yay in Arch Linux and Manjaro
- If You Appreciate What We Do Here On TecMint, You Should Consider:
- Что такое Yay. Особенности. Использование
- Что такое Arch User Repository (AUR)
- Что такое Yay?
- Особенности
- Установка
- . . . далее . . .
- Поддержка
- Примеры пользовательских операций
- Использование
- Arch linux install yay github
- About
- Arch linux install yay github
How to Install Yay AUR Helper in Arch Linux and Manjaro
The tow commonly used AUR helpers in Arch Linux are Yaourt and Packer. You can easily use them for Arch Linux package management tasks such as installing and updating packages.
However, the two have been discontinued in favour of yay, short for Yet Another Yaourt. Yay is a modern AUR helper written in the GO language. It has very few dependencies and supports AUR tab-completion so that you don’t have to type the commands in full. Just type the first few letters and hit ENTER.
In this article, we demonstrate how you can install Yay AUR helper on Arch Linux or Manjaro which is based on Arch and see a few examples of how you can use Yay.
Installing Yay AUR Helper in Arch Linux and Manjaro
To start off, log in as a sudo user and run the command below to download the git package.
Install Git on Arch Linux
Next, clone the yay git repository.
Clone Yay Git Repository
Change the file permissions from the root the sudo user.
Set Permissions on Yay AUR Helper
To build the package from PKGBUILD, navigate into the yay folder.
Next, build the package using the makepkg command below.
Install Yay AUR Helper in Arch Linux
How to Use Yay in Arch Linux and Manjaro
Once you have yay installed, you can upgrade all the packages on your system using the command.
To include development packages during the upgrade run.
As with any other AUR helpers, you can install the packages using the command.
To remove a package using yay use the command.
To clean up all unwanted dependencies on your system, issue the command.
If you want to print system statistics using yay, run.
And this sums up this brief tutorial on how you can install the yay AUR helper in Arch Linux and Manjaro.
If You Appreciate What We Do Here On TecMint, You Should Consider:
TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to search or browse the thousands of published articles available FREELY to all.
If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.
We are thankful for your never ending support.
Источник
Что такое Yay. Особенности. Использование
Пару лет назад, когда ещё пользовался Манджаро, писал для себя материал, с целью разобраться в том, что такое yay: чем он отличается от привычного pamac, зачем он нужен, если есть pacman по умолчанию, а почему часто встречаемый yaourt уже не стоит использовать.
Что такое Arch User Repository (AUR)
AUR — это управляемый сообществом репозиторий для пользователей Arch. AUR был создан с целью облегчения и организации процесса обмена пакетами сообществом. Он содержит описания пакетов (PKGBUILD), которые позволяют вам скомпилировать пакет из исходного кода с помощью makepkg, а затем установить его через pacman.
Что такое Yay?
Yay — вспомогательный инструмент Arch Linux AUR, написанный на Go. Он поможет вам автоматически устанавливать пакеты из PKGBUILD
Yay основан на дизайне yaourt, apacman и pacaur. Он разработан с учетом следующих целей:
- Предоставление интерфейса для Pacman
- Интерактивный поиск/установка в формате Yaourt
- Минимальные зависимости
- Минимизация вводимых пользователем данных
- Знать, когда пакеты git должны быть обновлены
Особенности
- Расширенное выполнение зависимостей
- Загрузить PKGBUILD из ABS (Arch Build System) или AUR
- Допоkнение команд AUR клавишей Tab
- Вопрос к пользователю перед вводом всех входных данных (перед запуском построений)
- Сужение круга поиска (yay linux header сначала выполняет поиск linux, а затем сужается до header)
- Поиск подходящих поставщиков пакетов и разрешение выбора
- Удаление зависимостей в конце процесса построения
- Запуск без выбора источника PKGBUILD
- Обеспечивает интерфейс для pacman, а также не имеет почти никаких зависимостей
- Обеспечивает функцию поиска yaourt и значительно минимизирует вход пользователя
- Еще одна заметная особенность — вы можете выбрать, какое приложение установить или обновить
- Кроме того, он поддерживает завершение вкладки AUR, поэтому просто введите несколько букв пакета AUR и нажмите Enter, чтобы завершить имя
- yay обеспечивает заполнение таблицы AUR и загружает PKGBUILD из ABS или AUR. Бинарный файл не имеет никаких дополнительных зависимостей
- Предоставляет расширенное обеспечение зависимостей и удаляет все зависимости make по окончанию процесса сборки
- Поддерживает цветной вывод при включении опции Color в файле /etc/pacman.conf
Цветной вывод может быть активирован для поддержки только пакета AUR или только пакетов из оф. репозитория.
Установка
При миграции с другого помощника AUR можно просто установить Yay с этим помощником
Альтернативно, первоначальная установка Yay может быть выполнена клонированием PKGBUILD и построением с помощью makepkg:
Перед началом работы убедитесь, что установлена группа пакетов base-devel.
- pacman -S —needed git base-devel
- git clone https://aur.archlinux.org/yay.git
- cd yay
- makepkg -si
. . . далее . . .
- sudo pacman -S git
- git clone https://aur.archlinux.org/yay.git
- cd yay
- makepkg -si
Так же возможно установить через pamac или командой «sudo pacman -S yay»
Поддержка
Вся поддержка, связанная с Yay, должна запрашиваться через GitHub. Поскольку Yay официально не поддерживается Arch Linux, не следует искать поддержку на форумах, комментариях AUR или других официальных каналах.
О поврежденном пакете AUR следует сообщить как о комментарии на странице пакета AUR. Пакет может считаться поврежденным, только если его не удалось построить с помощью makepkg. Отчеты должны составляться с использованием makepkg и включать полную информацию, а также любую другую соответствующую информацию. Никогда не создавайте отчеты с помощью Yay или других внешних инструментов.
Примеры пользовательских операций
yay Показать меню выбора установки пакета
yay -Ps Печать статистики системы
yay -Yc Очистить ненужные зависимости.
yay -G Загрузить PKGBUILD из ABS или AUR.
yay -Y —gendb Создание базы данных пакетов разработки, используемой для обновления разработки
yay -Syu —devel —timeupdate Выполнение обновления системы, а также проверка наличия обновлений пакета разработки и использование времени изменения PKGBUILD (не номер версии) для определения обновления.
Использование
Как и любые другие помощники AUR, типичный способ установки пакета из AUR:
Пример: yay -S mplayer
Чтобы найти пакет в AUR и официальных репозиториях, используйте флаг -Ss, как показано ниже (пример)
Чтобы обновить все пакеты из AUR и официальных репозиториев, используйте флаг -Syu.
Хорошей особенностью yay является то, что если вы передаете эту команду без операции, тогда отобразится меню выбора пакета.
==> Пакеты для установки (пример: 1 2 3, 1-3 или ^4)
Тут можно выбрать пакеты для установки или указать необходимые.
Чтобы вывести список пакетов, которые необходимо обновить, выполните:
Чтобы удалить нежелательные зависимости, используйте флаг -Yc, как показано ниже.
Более подробную информацию о yay см. В справочных страницах.
Источник
Arch linux install yay github
These are the basic instructions to build Arch on WSL 2.
- For instructions on bootstrapping WSL 1, please go here.
Table of Contents
Installing Arch Linux for WSL 2 from bootstrap
Install/upgrade to the Windows Subsystem for Linux 2 . Go here.
Install your favorite available distro from the Windows Store , then launch it from the Start menu.
- Steps 3-8 should be completed on a linux system
Download the Arch Linux bootstrap (latest version at time of writing).
Extract the image.
sudo tar -zxvf archlinux-bootstrap-2020.07.01-x86_64.tar.gz
Enter the extraced directory root.x86_64
Uncomment some servers in the pacman mirrorlist.
Recompress files in root.x86_64 directory.
sudo tar -czvf root.tar.gz *
Move the root.tar.gz file to an accessible Windows directory.
sudo mv root.tar.gz /mnt/c/Users/USERNAME/root.tar.gz
- After this step, you no longer need the temporarily installed linux system
Open a PowerShell prompt as Admin, and issue the following command:
wsl —import Archlinux PATH_WHERE_VHD_SHOULD_BE_CREATED C:\Users\USERNAME\root.tar.gz
Launch Archlinux from WSL.
wsl -d Archlinux
Initialize Arch keyring.
pacman -Syyu base base-devel git vim wget reflector fish
Enable multilib (if you want).
Sync package databases.
Update mirror list (replace United States with preferred repo mirror country).
reflector —country «United States» —age 12 —protocol https —sort rate —save /etc/pacman.d/mirrorlist
Set root user password.
Create new user.
useradd -m -G wheel -s /bin/fish -d /home/username username
Set password on user.
Enable wheel group.
sed -i ‘/%wheel ALL=(ALL) ALL/c\%wheel ALL=(ALL) ALL’ /etc/sudoers
Edit Arch locale and regenerate.
Install Yay AUR Helper and Pacman Wrapper
Create a directory for the yay PKGBUILD files and enter it.
Download yay PKGBUILD from AUR.
wget «https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=yay» —output-document=./PKGBUILD
Run makepkg to build and install yay.
- Alternatively, you could use the instructions from the official Yay Github repo)
Configure the Arch Linux WSL install for systemd
This guid is based off the information found on WSL.dev.
yay -S daemonize
Create the wsl.conf file on the system.
Create a startup script daemonize systemd as PID 1.
Exit out of WSL, and re-enter. It should now be running systemd.
- If you have any issues with the network, manually set a public DNS entry.
Install and Configure Windows Terminal
From the Windows Store, install Windows Terminal.
Copy any .png or .ico that you would like to use as distro icons to the following folder:
Edit the settings.json file for Windows Terminal and add the following line to the list item:
Download and install fonts for Powerline. Download here.
Launch X11 apps from the shell to Windows display
Download, install and then launch VcXsrv.
- Select display settings — Take default
- Select how to start clients — Take default
- Extra settings — Be sure Disable access control is checked.
- Configuration complete — Click Finish
Create a firewall rule in Windows to allow communication from WSL 2 to host OS.
New-NetFirewallRule -DisplayName «X Server — WSL 2» -Direction Inbound -Program «C:\Program Files\VcXsrv\vcxsrv.exe» -Action Allow
Get the IP of your local computer of the vEthernet (WSL) interface from CMD or PowerShell:
Export output to display using IP address collected in step 3.
For bash and zsh : export DISPLAY=192.168.1.100:0
For fish : set -x DISPLAY 192.168.1.100:0
/.config/fish/fish.config and you won’t need to type it again on the next WSL launch.
Install an xorg app for testing (We will use the Xorg Calculator).
sudo pacman -S xorg-xcalc
Launch xcalc to test.
If VcXsrv is working properly, Xorg Calculator should popup as a new window.
About
Basic instructions for bootstrapping ArchLinux as a new distribution on Windows Subsystem for Linux versions 1 and 2.
Источник
Arch linux install yay github
Yet Another Yogurt — An AUR Helper Written in Go
- Advanced dependency solving
- PKGBUILD downloading from ABS or AUR
- Completions for AUR packages
- Query user up-front for all input (prior to starting builds)
- Narrow search ( yay linux header will first search linux and then narrow on header )
- Find matching package providers during search and allow selection
- Remove make dependencies at the end of the build process
If you are migrating from another AUR helper, you can simply install Yay with that helper.
The initial installation of Yay can be done by cloning the PKGBUILD and building with makepkg:
Before you begin, make sure you have the base-devel package group installed.
If you do not want to compile yay yourself you can use the builds generated by GitHub Actions.
If you’re using Manjaro or another distribution that packages yay you can simply install yay using pacman (as root):
⚠️ distributions sometimes lag updating yay on their repositories.
Development packages upgrade
Use yay -Y —gendb to generate a development package database for *-git packages that were installed without yay. This command should only be run once.
yay -Syu —devel will then check for development package updates
Use yay -Y —devel —save to make development package updates permanently enabled ( yay and yay -Syu will then always check dev packages)
Examples of Custom Operations
Command | Description |
---|---|
yay | Alias to yay -Syu . |
yay | Present package-installation selection menu. |
yay -Y —combinedupgrade —save | Make combined upgrade the default mode. |
yay -Ps | Print system statistics. |
yay -Yc | Clean unneeded dependencies. |
yay -G | Download PKGBUILD from ABS or AUR. |
yay -Gp | Print to stdout PKGBUILD from ABS or AUR. |
yay -Y —gendb | Generate development package database used for devel update. |
yay -Syu —devel | Perform system upgrade, but also check for development package updates. |
yay -Syu —timeupdate | Perform system upgrade and use PKGBUILD modification time (not version number) to determine update. |
Frequently Asked Questions
- Yay does not display colored output. How do I fix it?
Make sure you have the Color option in your /etc/pacman.conf (see issue #123).
- Yay is not prompting to skip packages during system upgrade.
The default behavior was changed after v8.918 (see 3bdb534 and issue #554). To restore the package-skip behavior use —combinedupgrade (make it permanent by appending —save ). Note: skipping packages will leave your system in a partially-upgraded state.
- Sometimes diffs are printed to the terminal, and other times they are paged via less. How do I fix this?
Yay uses git diff to display diffs, which by default tells less not to page if the output can fit into one terminal length. This behavior can be overridden by exporting your own flags ( export LESS=SRX ).
- Yay is not asking me to edit PKGBUILDS, and I don’t like the diff menu! What can I do?
yay —editmenu —nodiffmenu —save
- How can I tell Yay to act only on AUR packages, or only on repo packages?
- An Out Of Date AUR Packages message is displayed. Why doesn’t Yay update them?
This message does not mean that updated AUR packages are available. It means the packages have been flagged out of date on the AUR, but their maintainers have not yet updated the PKGBUILD s (see outdated AUR packages).
- Yay doesn’t install dependencies added to a PKGBUILD during installation.
Yay resolves all dependencies ahead of time. You are free to edit the PKGBUILD in any way, but any problems you cause are your own and should not be reported unless they can be reproduced with the original PKGBUILD.
- I know my -git package has updates but yay doesn’t offer to update it
Yay uses an hash cache for development packages. Normally it is updated at the end of the package install with the message Found git repo . If you transition between aur helpers and did not install the devel package using yay at some point, it is possible it never got added to the cache. yay -Y —gendb will fix the current version of every devel package and start checking from there.
Check CONTRIBUTING.md for more information.
- What settings do you use?
Pacman conf options:
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.
Источник