diff options
author | Anthony Wang | 2021-01-07 07:58:59 -0600 |
---|---|---|
committer | GitHub | 2021-01-07 07:58:59 -0600 |
commit | 427002d78fd8b2d969d0165f38f509846611afe5 (patch) | |
tree | 55e0ebab6345892a29c6ac36f146e9187c6c9be7 | |
parent | 47c8a43c96b60b82d080a429e404c77845c2bea3 (diff) |
Testing tldr
-rw-r--r-- | pages/linux/yay.md | 64 |
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` |