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] hanezlinux:arch_artix_linux [2026-05-14] (current) – [Remove Unused Dependencies] hanez
Line 11: Line 11:
 ===== Useful commands ===== ===== Useful commands =====
  
-==== Remove unneeded dependencies using pacman ==== 
  
-<code>pacman -Rsn $(pacman -Qdtq)</code> 
  
 ==== Remove unneeded dependencies using yay ==== ==== Remove unneeded dependencies using yay ====
Line 56: Line 54:
 <code>pacman -R --dbonly package</code> <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 ===== ===== Links =====
  
Line 61: Line 69:
   * [[https://stackoverflow.com/questions/75498183/list-pacman-upgradable-packages-without-version|List pacman upgradable packages without "-version"]]   * [[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]]   * [[https://bbs.archlinux.org/viewtopic.php?id=76218|List AUR packages installed and only AUR packages]]
- 
linux/arch_artix_linux.1742281576.txt.gz · Last modified: by hanez