You are not logged in.

#1 2010-07-02 11:23:46

hungerfish
Member
Registered: 2009-09-13
Posts: 254

pacman not 'working' with -Rs

I'm trying to uninstall lxde.

"pacman -Rd lxde" reveals...

Remove (12): pcmanfm-0.5.2-1  openbox-3.4.11.2-1  lxtask-0.1.3-1  lxsession-lite-0.4.4-1  lxrandr-0.1.1-1  lxpanel-0.5.5-3  lxmenu-data-0.1.1-1
             lxlauncher-0.2.1-3  menu-cache-0.3.2-1  lxde-common-0.5.0-1  lxappearance-0.4.0-2  gpicview-0.2.1-3

Both openbox and gpicview have been explicitly installed and I want to keep them.

From man page:
       -s, --recursive
           Remove each target specified including all of their dependencies, provided that (A) they are not required by other packages; and (B)
           they were not explicitly installed by the user. This operation is recursive and analogous to a backwards --sync operation, and helps
           keep a clean system without orphans. If you want to omit condition (B), pass this option twice.

So "pacman -Rs lxde" should work...

error: failed to prepare transaction (could not satisfy dependencies)
:: obconf: requires openbox>=3.4.5
:: obmenu: requires openbox
:: openbox-themes: requires openbox

And "pacman -Qi openbox" gives...

...
Required By    : obconf  obmenu  openbox-themes
...
Install Reason : Explicitly installed
...

Same with "pacman -Qi gpicview"...

...
Required By    : None
...
Install Reason : Explicitly installed
...

Bug? Or it this the expected default behaviour?? If it is, how can I tell it to remove all dependencies execpt those that meat conditions A and B from -Rs ??


Beetles and bacteria are vastly more successful than humans in terms of survival.

Offline

#2 2010-07-02 16:11:45

mcmillan
Member
Registered: 2006-04-06
Posts: 737

Re: pacman not 'working' with -Rs

lxde isn't a package but a group, so pacman -R lxde will try to remove all the parts of that group (which includes openbox). Looks like this bug  is affecting you. Since the last pacman upgrade apparently it doesn't recognize groups like it used to.

Offline

#3 2010-07-02 16:17:48

hokasch
Member
Registered: 2007-09-23
Posts: 1,461

Re: pacman not 'working' with -Rs

You could use the -u switch and reinstall gpicview afterwards.

Offline

#4 2010-07-05 11:36:46

hungerfish
Member
Registered: 2009-09-13
Posts: 254

Re: pacman not 'working' with -Rs

Ok, I used the -u switch and reinstalled gpicview.

So, this is not the indented behaviour? I'll add a comment to that bug report


Beetles and bacteria are vastly more successful than humans in terms of survival.

Offline

Board footer

Powered by FluxBB