arch
Table of Contents
Arch Linux
Use “yay” instead of yaourt! yaourt is outdated. (https://github.com/Jguer/yay)
Install Yay
Useful commands
Remove unneeded dependencies using pacman
pacman -Rsn $(pacman -Qdtq)
Remove unneeded dependencies using yay
yay -Yc
Install local pkg.tar in Arch Linux
pacman -U .pkg.tar.gz or .pkg.tar.xz
Create a list of user installed packages without dependencies
Without AUR packages
pacman -Qqen > pkglist.txt
Only AUR packages
pacman -Qqem > pkglist_aur.txt
Install packages with Yay from a list contained in a text file created with the command above
yay -S --needed - < pkglist.txt
Source: https://wiki.archlinux.org/title/Migrate_installation_to_new_hardware
Check which package owns a file
pacman -Qo file
Remove a package from Pacman without deleting files
pacman -R --dbonly package
Links
arch.txt · Last modified: 2024-03-17 by hanez