Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

42
linux/yay Normal file
View File

@@ -0,0 +1,42 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# yay
> Yet Another Yogurt: build and install packages from the Arch User Repository.
> Also see `pacman`.
> More information: <https://github.com/Jguer/yay>.
- Interactively search and install packages from the repos and AUR:
`yay {{package_name|search_term}}`
- Synchronize and update all packages from the repos and AUR:
`yay`
- Synchronize and update only AUR packages:
`yay -Sua`
- Install a new package from the repos and AUR:
`yay -S {{package}}`
- Remove an installed package and both its dependencies and configuration files:
`yay -Rns {{package}}`
- Search the package database for a keyword from the repos and AUR:
`yay -Ss {{keyword}}`
- Remove orphaned packages (installed as dependencies but not required by any package):
`yay -Yc`
- Show statistics for installed packages and system health:
`yay -Ps`