2009年12月23日 星期三

Remove Orphan Packages on Arch Linux

1. remove a package's dependencies which are not required by any other installed package

sudo pacman -Rs

2. list all packages no longer required as dependencies

sudo pacman -Qdt

3. combine both commands

sudo pacman -Rns $(pacman -Qqtd)

-n, --nosave # delete .pacsave backup files
-q, --quiet # show less information for certain sync operations

沒有留言: