wiki.xw3.org

Welcome to the xw3 Wiki! Powered by hanez

User Tools

Site Tools


linux:arch_artix_linux

Arch / Artix Linux

Use “yay” instead of yaourt! yaourt is outdated. (https://github.com/Jguer/yay)

Install Yay

Useful commands

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

Check which package owns a file

pacman -Qo file

Check which package provides a file

pacman -F file

Show files of a package

pacman -Ql package

Remove a package from Pacman without deleting files

pacman -R --dbonly package

Remove Unused Dependencies

pacman -Rns $(pacman -Qdtq)

Explanation of the Command
Option	Description
-R	Remove the specified packages.
-n	Remove configuration files along with the packages.
-s	Also remove dependencies that were installed exclusively for the packages being removed.
$(pacman -Qdtq)	This part lists all orphaned packages, which are dependencies no longer required by any installed package.

linux/arch_artix_linux.txt · Last modified: by hanez