wiki.xw3.org

Welcome to the xw3 Wiki! Powered by hanez

User Tools

Site Tools


linux:arch_artix_linux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:arch_artix_linux [2025-03-18] – removed - external edit (Unknown date) 127.0.0.1linux:arch_artix_linux [2026-05-14] (current) – [Remove Unused Dependencies] hanez
Line 1: Line 1:
 +====== Arch / Artix Linux ======
  
 +Use "yay" instead of yaourt! yaourt is outdated.
 +([[https://github.com/Jguer/yay]])
 +
 +===== Install Yay =====
 +
 +[[https://itsfoss.com/install-yay-arch-linux/|Install and Use Yay on Arch Linux]]
 +
 +
 +===== Useful commands =====
 +
 +
 +
 +==== Remove unneeded dependencies using yay ====
 +
 +<code>yay -Yc</code>
 +
 +==== Install local pkg.tar in Arch Linux ====
 +
 +<code>pacman -U .pkg.tar.gz or .pkg.tar.xz</code>
 +
 +==== Create a list of user installed packages without dependencies ====
 +
 +=== Without AUR packages ===
 +
 +<code>pacman -Qqen > pkglist.txt</code>
 +
 +=== Only AUR packages ===
 +
 +<code>pacman -Qqem > pkglist_aur.txt</code>
 +
 +==== Install packages with Yay from a list contained in a text file created with the command above ====
 +
 +<code>yay -S --needed - < pkglist.txt</code>
 +
 +Source: [[https://wiki.archlinux.org/title/Migrate_installation_to_new_hardware]]
 +
 +==== Check which package owns a file ====
 +
 +<code>pacman -Qo file</code>
 +
 +
 +==== Check which package provides a file ====
 +
 +<code>pacman -F file</code>
 +
 +==== Show files of a package ====
 +
 +<code>pacman -Ql package</code>
 +
 +==== Remove a package from Pacman without deleting files ====
 +
 +<code>pacman -R --dbonly package</code>
 +
 +==== Remove Unused Dependencies ====
 +
 +<code>pacman -Rns $(pacman -Qdtq)</code>
 +
 +<code>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.</code>
 +===== Links =====
 +
 +  * [[https://bbs.archlinux.org/viewtopic.php?id=95466|Getting a list of packages installed explicitly by me (excluding deps)]]
 +  * [[https://stackoverflow.com/questions/75498183/list-pacman-upgradable-packages-without-version|List pacman upgradable packages without "-version"]]
 +  * [[https://bbs.archlinux.org/viewtopic.php?id=76218|List AUR packages installed and only AUR packages]]