You are not logged in.
Hello, I was doing some system clean-up and noticed that while doing pacman -Rss on gedit it would not remove optional / non-optional dependencies that were explicitly installed even though I explicitly did install them. I tested the command with other applications and the same happened. The result is the same as just running pacman -Rs. On the older pacman before 4.1 it did work. Not sure if I'm missing something, just wanted to know if I'm the only one having this issue.
Last edited by MCMXXVII (2013-04-14 07:20:13)
Offline
It might be tangential to your problem, but you mentioned optional dependencies, which shouldn't be affected by -Rs
I got the correct behavior, tested with one of my packages (qtiplot) and installed then removed gedit. Can you post the exact commands you're running and the output? You might also check that nothing else needs the packages you were expecting to be removed.
andy@odin> sudo pacman -S gedit
resolving dependencies...
looking for inter-conflicts...
Packages (9):
Name New Version Net Change
extra/gobject-introspection 1.34.2-1 9.09 MiB
extra/gtksourceview3 3.6.1-1 6.05 MiB
extra/libpeas 1.6.1-1 1.12 MiB
extra/pygobject-devel 3.4.2-1 0.03 MiB
extra/python2-beaker 1.6.4-1 0.66 MiB
extra/python2-gobject 3.4.2-1 1.21 MiB
extra/python2-mako 0.7.3-1 0.98 MiB
extra/python2-markupsafe 0.15-2 0.16 MiB
extra/gedit 3.6.2-2 19.35 MiB
Total Installed Size: 38.67 MiB
:: Proceed with installation? [Y/n] y
(9/9) checking keys in keyring [------------------------------------] 100%
(9/9) checking package integrity [------------------------------------] 100%
(9/9) loading package files [------------------------------------] 100%
(9/9) checking for file conflicts [------------------------------------] 100%
(9/9) checking available disk space [------------------------------------] 100%
(1/9) installing gtksourceview3 [------------------------------------] 100%
(2/9) installing python2-markupsafe [------------------------------------] 100%
(3/9) installing python2-beaker [------------------------------------] 100%
(4/9) installing python2-mako [------------------------------------] 100%
(5/9) installing gobject-introspection [------------------------------------] 100%
(6/9) installing libpeas [------------------------------------] 100%
Optional dependencies for libpeas
gjs: gobject-based plugin engine - gjs runtime loader
seed: gobject-based plugin engine - seed runtime loader
(7/9) installing pygobject-devel [------------------------------------] 100%
(8/9) installing python2-gobject [------------------------------------] 100%
(9/9) installing gedit [------------------------------------] 100%
Optional dependencies for gedit
libzeitgeist: Zeitgeist plugin
andy@odin> sudo pacman -D --asexplicit python2-gobject
python2-gobject: install reason has been set to 'explicitly installed'
andy@odin> sudo pacman -Rs gedit
checking dependencies...
Packages (3):
Name Old Version Net Change
gtksourceview3 3.6.1-1 -6.05 MiB
libpeas 1.6.1-1 -1.12 MiB
gedit 3.6.2-2 -19.35 MiB
Total Removed Size: 26.53 MiB
:: Do you want to remove these packages? [Y/n] n
[1] andy@odin> sudo pacman -Rss gedit
checking dependencies...
Packages (9):
Name Old Version Net Change
gobject-introspection 1.34.2-1 -9.09 MiB
gtksourceview3 3.6.1-1 -6.05 MiB
libpeas 1.6.1-1 -1.12 MiB
pygobject-devel 3.4.2-1 -0.03 MiB
python2-beaker 1.6.4-1 -0.66 MiB
python2-gobject 3.4.2-1 -1.21 MiB
python2-mako 0.7.3-1 -0.98 MiB
python2-markupsafe 0.15-2 -0.16 MiB
gedit 3.6.2-2 -19.35 MiB
Total Removed Size: 38.67 MiB
:: Do you want to remove these packages? [Y/n] y
(1/9) removing gedit [------------------------------------] 100%
(2/9) removing python2-gobject [------------------------------------] 100%
(3/9) removing pygobject-devel [------------------------------------] 100%
(4/9) removing libpeas [------------------------------------] 100%
(5/9) removing gobject-introspection [------------------------------------] 100%
(6/9) removing python2-mako [------------------------------------] 100%
(7/9) removing python2-markupsafe [------------------------------------] 100%
(8/9) removing python2-beaker [------------------------------------] 100%Last edited by mcmillan (2013-04-14 01:51:51)
Offline
I was able to remove libzeitgeist as an example altogether with gedit in pacman 4.0 using the -Rss command but now it's not possible without manually marking it as explicit . I have never installed and marked optional dependencies as explicit while using pacman 4.0. So now the thing is how are optional dependencies marked when they're installed explicitly? Are they neither explicit or implicit? I thought passing the 's' option twice would target both explicitly and implicitly installed dependencies, well at least it did in in 4.0. Now I'm confused
Btw I'm using alias 'pacman'='sudo pacman' just to clear up any future confusion.
jatotti@archlinux-t410:~$ pacman -S gedit
resolving dependencies...
looking for inter-conflicts...
Packages (3): gtksourceview3-3.6.1-1 libpeas-1.6.1-1 gedit-3.6.2-2
Total Installed Size: 26.53 MiB
:: Proceed with installation? [Y/n] y
(3/3) checking keys in keyring [##########################################################################] 100%
(3/3) checking package integrity [##########################################################################] 100%
(3/3) loading package files [##########################################################################] 100%
(3/3) checking for file conflicts [#########################################################################] 100%
(3/3) checking available disk space [##########################################################################] 100%
(1/3) installing gtksourceview3 [##########################################################################] 100%
(2/3) installing libpeas [##########################################################################] 100%
Optional dependencies for libpeas
gjs: gobject-based plugin engine - gjs runtime loader
seed: gobject-based plugin engine - seed runtime loader
(3/3) installing gedit [##########################################################################] 100%
Optional dependencies for gedit
libzeitgeist: Zeitgeist plugin
jatotti@archlinux-t410:~$ pacman -S libzeitgeist
resolving dependencies...
looking for inter-conflicts...
Packages (1): libzeitgeist-0.3.18-3
Total Installed Size: 1.33 MiB
:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring [##########################################################################] 100%
(1/1) checking package integrity [##########################################################################] 100%
(1/1) loading package files [##########################################################################] 100%
(1/1) checking for file conflicts [##########################################################################] 100%
(1/1) checking available disk space [##########################################################################] 100%
(1/1) installing libzeitgeist [##########################################################################] 100%
Optional dependencies for libzeitgeist
zeitgeist: zeitgeist framework
jatotti@archlinux-t410:~$ pacman -Qi gedit
[sudo] password for jatotti:
Name : gedit
Version : 3.6.2-2
Description : A text editor for GNOME
Architecture : x86_64
URL : http://www.gnome.org
Licenses : GPL
Groups : gnome-extra
Provides : None
Depends On : gtksourceview3 gsettings-desktop-schemas libpeas enchant iso-codes libsm desktop-file-utils python2-gobject dconf
Optional Deps : libzeitgeist: Zeitgeist plugin [installed]
Required By : None
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 19812.00 KiB
Packager : Jan de Groot <jgc@archlinux.org>
Build Date : Mon 10 Dec 2012 03:51:25 AM PST
Install Date : Sat 13 Apr 2013 07:58:54 PM PDT
Install Reason : Explicitly installed
Install Script : Yes
Validated By : Signature
jatotti@archlinux-t410:~$ pacman -Rs gedit
checking dependencies...
Packages (3): gtksourceview3-3.6.1-1 libpeas-1.6.1-1 gedit-3.6.2-2
Total Removed Size: 26.53 MiB
:: Do you want to remove these packages? [Y/n] n
jatotti@archlinux-t410:~$ pacman -Rss gedit
checking dependencies...
Packages (3): gtksourceview3-3.6.1-1 libpeas-1.6.1-1 gedit-3.6.2-2
Total Removed Size: 26.53 MiB
:: Do you want to remove these packages? [Y/n] n
jatotti@archlinux-t410:~$ Last edited by MCMXXVII (2013-04-14 06:46:40)
Offline
jatotti@archlinux-t410:~$ pacman -Qe $(pacman -Qq | grep libz)
libzeitgeist 0.3.18-3
jatotti@archlinux-t410:~$ pacman -Qie $(pacman -Qq | grep libz)
Name : libzeitgeist
Version : 0.3.18-3
Description : Zeitgeist client library
Architecture : x86_64
URL : https://launchpad.net/libzeitgeist
Licenses : LGPL2.1
Groups : None
Provides : None
Depends On : glib2
Optional Deps : zeitgeist: zeitgeist framework
Required By : None
Optional For : gedit
Conflicts With : None
Replaces : None
Installed Size : 1360.00 KiB
Packager : Jan de Groot <jgc@archlinux.org>
Build Date : Thu 20 Sep 2012 03:01:12 PM PDT
Install Date : Sat 13 Apr 2013 07:59:19 PM PDT
Install Reason : Explicitly installed <------------------ ???
Install Script : No
Validated By : Signature
jatotti@archlinux-t410:~$ pacman -Rss gedit
checking dependencies...
Packages (3): gtksourceview3-3.6.1-1 libpeas-1.6.1-1 gedit-3.6.2-2 ## libzeitgeist not to be removed so it'll be left behind :o
Total Removed Size: 26.53 MiB
:: Do you want to remove these packages? [Y/n] n
jatotti@archlinux-t410:~$ Offline
MCMXXVII, `pacman -Rss` has never had an effect on opt-depends as far as I know. Pacman, at the moment (or in the past) does not handle optdepends (though that's on the 4.2 wishlist).
-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.
It doesn't say anything about optdepends.
All the best,
-HG
Offline
Oh, I didn't know that, oops it was probably just wishful thinking. Well I hope that feature makes it to pacman 4.2, at the moment I'll just have to look for and remove orphaned optional dependencies manually since pacman -Rs $(pacman -Qtdq) doesn't pick them up. Well time for some cleaning ![]()
Offline
Oh, I didn't know that, oops it was probably just wishful thinking. Well I hope that feature makes it to pacman 4.2, at the moment I'll just have to look for and remove orphaned optional dependencies manually since pacman -Rs $(pacman -Qtdq) doesn't pick them up. Well time for some cleaning
Fair enough, please add [Solved] to the beginning of your thread title ![]()
All the best,
-HG
Offline