On 02/26/2010 01:29 PM, christopher floess wrote:


On 02/26/2010 09:18 PM, Gary Wright wrote:
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.
Cool. I haven't run it because it seemed to want to remove pacman, but
maybe I did something wrong. At this point it looks like I'll be
reinstalling any way, so if it wrecks my system, it's not a big deal.

I'll report back.

-- Chris

Hmm, well I did try it with just the pacman -R at the start and it refused, saying there were unsatisfied dependencies. With the -Rc opt, it tries to remove kernel26... hmm. pacman -Rd .... would create all hell, but it wouldn't complain... maybe an reinstall would be for the best.

Reply via email to