You are not logged in.
Hi All,
When I install a package, pacman suggest that I install other packages as optional dependensies like this:
(11/11) installing totem [###############################################################] 100%
Optional dependencies for totem
gstreamer0.10-ugly-plugins: Extra media codecs
gstreamer0.10-bad-plugins: Extra media codecs
gstreamer0.10-ffmpeg: Extra media codecs
lirc-utils: Infrared Remote Control plugin
libepc: Publish Playlist plugin
libgdata: YouTube Browser plugin
bluez: Bemused plugin
grilo-plugins: Browse sidebar (remote media)
pyxdg: opensubtitles pluginSome of these are already installed on my system. I think it would be usefull that pacman checks if these are already installed. I would like something like this output:
(11/11) installing totem [###############################################################] 100%
Optional dependencies for totem
gstreamer0.10-ugly-plugins: Extra media codecs (*installed*)
gstreamer0.10-bad-plugins: Extra media codecs
gstreamer0.10-ffmpeg: Extra media codecs
lirc-utils: Infrared Remote Control plugin
libepc: Publish Playlist plugin (*installed*)
libgdata: YouTube Browser plugin
bluez: Bemused plugin
grilo-plugins: Browse sidebar (remote media)
pyxdg: opensubtitles pluginWhat are your thoughts on the subject?
Best regards,
Cedric
Offline
That would be great. It would be also great that the optional dependencies would be deleted if the explicitly installed package is gone. I don't know why this feature isn't already integrated. Does somebody have patch?
If you have built castles in the air, your work need not be lost; that is where they should be. Now put foundations under them.
Henry David Thoreau
Registered Linux User: #559057
Offline
cdwijs: Create a feature request here: https://bugs.archlinux.org/index.php?pr … x&switch=1
Offline
Offline
Check the pacman-dev mailing list also, there may have been additional relevant discussion there.
And at the risk of stating the obvious, the best way to get a response from the devs is to submit a patch yourself.
Last edited by tomk (2012-05-23 10:01:01)
Offline
There is actually a patchset floating around that completely overhauls the handling of optdepends. It needs some work to get merged....
Offline
That would be great. It would be also great that the optional dependencies would be deleted if the explicitly installed package is gone. I don't know why this feature isn't already integrated. Does somebody have patch?
I, for one, disagree. You see, hard dependencies are justified (as in there are some guidelines as to how assign them), optdeps are not (there can be cross-repo optdeps from lower-level repo to a higher-level one; if you promote optdeps to real deps, there can be dependency cyces, etc.). In pacman, otdeps = comments. So, I would really prefer to keep it that way.
Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd
Offline
There is actually a patchset floating around that completely overhauls the handling of optdepends. It needs some work to get merged....
That is nice to read. So far all I though whenever reading the output was: "Nice, more bogus crap from the optdepends array…"
:-)
Offline
Shark wrote:That would be great. It would be also great that the optional dependencies would be deleted if the explicitly installed package is gone. I don't know why this feature isn't already integrated. Does somebody have patch?
I, for one, disagree. You see, hard dependencies are justified (as in there are some guidelines as to how assign them), optdeps are not (there can be cross-repo optdeps from lower-level repo to a higher-level one; if you promote optdeps to real deps, there can be dependency cyces, etc.). In pacman, otdeps = comments. So, I would really prefer to keep it that way.
It could be implemented some security measures that optdepends wouldn't be removed if this optdepends are tied to other packages too - like real dependencies are. It could be implemented the same system for optdepends as is for real dependencies.
If you have built castles in the air, your work need not be lost; that is where they should be. Now put foundations under them.
Henry David Thoreau
Registered Linux User: #559057
Offline
If you want to know what has been implemented (but needs revision before merging...)
Offline
You can use this or similar to check right now:
pacman -T $(expac -Q '%o' totem)Last edited by Mr.Elendig (2012-05-27 13:44:17)
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
If you want to know what has been implemented (but needs revision before merging...)
optdepends can be removed with -Rs [done] I don't mean to criticize especially if I haven't done anything about it, but this seems like an overkill. As i said, I don't think one should treat optdeps at the same level as hard deps. Perhaps, -Rso would be an alternative.
For example, suppose that some package X optdepends on a package Y from base. Package Y is not listed as a dep for any of the packages (that's the guideline?). Then, removing X will get rid of Y and break the system. Another example is less severe: X optdepends on Y, but I want to remove X (including its hard deps) but want to keep Y.
Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd
Offline
Umm... you do know the difference between packages installed explicitly and as dependencies?
Offline
This sounds like optdepends marked as dependencies won't show up in -Qdt anymore.
Offline
You can use this or similar to check right now:
pacman -T $(expac -Q '%O' totem | cut -d':' -f1)
Or if you want the list for all installed packages
for i in $(pacman -Q|sed 's/\ .*//'); do ODS=$(pacman -T $(expac -Q '%O' $i | cut -d':' -f1)); if [ "$ODS" ]; then echo $i: $ODS; fi; doneOffline
for i in $(pacman -Q|sed 's/\ .*//'); do ODS=$(pacman -T $(expac -Q '%O' $i | cut -d':' -f1)); if [ "$ODS" ]; then echo $i: $ODS; fi; done
rtfm and see what pacman -Qq does ![]()
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
Umm... you do know the difference between packages installed explicitly and as dependencies?
OK... fair enough.
Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd
Offline