Linux command
yay 命令
文本
涉及管道、覆盖或删除,执行前请先确认路径和参数。
常用示例
Interactively search
yay [package_name|search_term]
Synchronize and update
yay
Install
yay -S [package] --noconfirm
Remove
yay -Rns [package]
Search
yay -Ss [keyword]
Remove orphaned packages
yay -Yc
Clean pacman and yay caches
yay -Scc
Show statistics for
yay -Ps
说明
Yay is a Pacman wrapper with AUR support. It passes options to Makepkg and Pacman after resolving packages to install/upgrade.
FAQ
What is the yay command used for?
Yay is a Pacman wrapper with AUR support. It passes options to Makepkg and Pacman after resolving packages to install/upgrade.
How do I run a basic yay example?
Run `yay [package_name|search_term]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
Where can I find more yay examples?
This page includes 8 examples for yay, plus related commands for nearby Linux tasks.