You are not logged in.

#1 2010-10-14 11:26:04

atommixz
Member
Registered: 2010-06-25
Posts: 11

How to delete everything, but base group and their depends?

If I install KDE or Gnome, and even a bunch of different programs, or have too much broken system, or even what the cause ..
How to easiest delete everything, but to keep packages in base group and their depends?

Last edited by atommixz (2010-10-14 11:37:31)

Offline

#2 2010-10-14 13:16:26

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: How to delete everything, but base group and their depends?

I can't see why this would be a good idea (you'd be better off just backing up your configs and reinstalling, imo), but this would effectively do what you ask...

sudo pacman -R $(comm -13 <(pacman -Qqg base) <(pacman -Qq))

Offline

#3 2010-10-14 14:50:51

atommixz
Member
Registered: 2010-06-25
Posts: 11

Re: How to delete everything, but base group and their depends?

I'm reading wiki too. It's only work if pacman -Rd ... but It's incorrect because depends for base group also removed... pacman likely not work after it.
Reinstalling it's bad-bad way

Offline

#4 2010-10-14 15:43:19

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: How to delete everything, but base group and their depends?

You're drawing an erroneous conclusion. Dependencies for base are self contained within base. That is to say, you can install only the packages in base, and boot into a working system.

If it's not working, then it gives rise to the idea that you have packages outside of the base group that are providing the functionality of packages in base. I'm not willing to test this further than verifying what I think the output of the comm should be -- and it looks correct on my end.

Offline

Board footer

Powered by FluxBB