aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pages/linux/yay.md64
1 files changed, 64 insertions, 0 deletions
diff --git a/pages/linux/yay.md b/pages/linux/yay.md
new file mode 100644
index 0000000..2306549
--- /dev/null
+++ b/pages/linux/yay.md
@@ -0,0 +1,64 @@
+# yay
+
+> Yet Another Yogurt: A utility for Arch Linux to build and install packages from the Arch User Repository.
+> A frontend to `pacman`.
+
+- Synchronize and update all packages from the repos and AUR:
+
+`yay`
+
+- Interactively search and install packages from the repos and AUR:
+
+`yay {{package_name|search_term}}`
+
+- Install a new package from the repos and AUR:
+
+`yay -S {{package_name}}`
+
+- Search the package database for a keyword from the repos and AUR:
+
+`yay -Ss {{keyword}}`
+
+- Get information about a package
+
+`yay -Si {{package_name}}`
+
+- Clean the package cache
+
+`yay -Sc`
+
+- Completely wipe the package cache
+
+`yay -Scc`
+
+- Uninstall a package and delete config files
+
+`yay -Rns {{package_name}}`
+
+- Install a local package (useful for rolling back updates)
+
+`yay -U /var/cache/pacman/pkg/{{package_name}}`
+
+- Find out which package owns a file
+
+`yay -Qo {{file_name}}`
+
+- List files contained in a package
+
+`yay -Ql {{package_name}
+
+- List all explicitly installed packages (includes AUR packages)
+
+`yay -Qe`
+
+- Save all explicitily installed packages to a file
+
+`yay -Qe | awk '{print $1}' > packages.txt`
+
+- Remove all unneeded dependencies
+
+`yay -Yc`
+
+- Show statistics for installed packages and system health:
+
+`yay -Ps`