You are not logged in.
Hello. A new guy here, loving the distro. ![]()
So, what I did was installing openbox and then lxde to try out, but now I want to remove all lxde packages except openbox without removing each package individually.
I see on the man page that there is an option to exclude packages with a caret while syncing, but not while removing. Is there a simple way to do this?
Thank you.
Offline
0) If you installed openbox explicitly before, it will not be listed as a dependency on lxde, you can safely remove lxde without affecting openbox. However, in case openbox was not installed explicitly, then see 1 or 2
1 ) remove and then re-install immediately ?
2) install openbox explicitly so that its no longer a dependency of lxde.
pacman -S openboxand then remove lxde.
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
I thought it might mess up my user configuration files, but I tried this and all is as was. Thanks. ![]()
Edit: Strange. I did install it explicitly before but uninstalling lxde still uninstalled openbox. But I reinstalled it so all good now.
Last edited by m73 (2012-06-04 15:31:39)
Offline
As a little tweak to Inxsible's idea, use
pacman -D --asexplicitto change the status without reinstalling the package.
Offline
This is about group membership, not explicitness. pacman always sees openbox as a member of the lxde group, even if it's installed without the rest of the group. So naturally, pacman will try to remove it with the group.
I guess this is either a feature or a bug, depending on your point of view. ![]()
Also, I know you're sorted now, but you could have done this:
pacman -R $(pacman -Qgq lxde | grep -v openbox)Offline
This is about group membership, not explicitness. pacman always sees openbox as a member of the lxde group, even if it's installed without the rest of the group. So naturally, pacman will try to remove it with the group.
I stand corrected on my point 0) then.
Hmm... I am not quite sure if I consider this a feature or a bug.... I am kinda on the fence on this one.
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
pacman -R $(pacman -Qgq lxde | grep -v openbox)
Nice, never knew about $( ) . That I'll remember.
Thanks. ![]()
Offline
I know you're sorted now, but you could have done this:
pacman -R $(pacman -Qgq lxde | grep -v openbox)
Wouldn't this leave a bunch of orphans?
'pacman -Rs' seems a better way to do it.
@m73
Please remember to mark the thread as solved.
Offline