On 02/26/2010 08:41 AM, Laurie Clark-Michalek wrote:
Is there a way to de-install everything that's NOT in base? I looked around
for this, and will I could certainly create a command line chain for it
something like "pacman -R --all !base"  would be nice

-- Chris


pacman -R $(pacman -Qq | grep -v "$(pacman -Qqg base)")

Though I havn't tested that, it should work :)


I was pondering that one last night before bed. Good thing I gave up. :P . I did test it, except for replacing the pacman -R bit with echo $(... and it works.

Added to the wiki:

http://wiki.archlinux.org/index.php/Pacman_Tips#Removing_everything_but_base_group

Reply via email to