User:Allan/Pacman OptDepends

From ArchWiki
< User:Allan
Revision as of 23:58, 5 March 2009 by Allan (Talk | contribs) (Example)

Jump to: navigation, search

The Idea

Currently optdepends in pacman serve no purpose other than informational. It would be good to improve this somewhat.

Example

> pacman -S python
Optional dependencies for python
    tk: for IDLE, pynche and modulator
> pacman -Qi python
Optional Deps : tk: for IDLE, pynche and modulator
> pacman -S --asdep tk
> pacman -Qi python
Optional Deps : tk: for IDLE, pynche and modulator (installed)
> pacman -Qqtd
> pacman -Qqtd --optdep
tk (optdepend for python)
> pacman -Rs python
Remove (2): python-2.6.1-1  tk-8.5.6-1
> pacman -S tk
> pacman -S python
(no optional dependencies notification output)

Actual changes to make

  • pacman recognises installed optdepends when using -Qi
  • pacman includes optdepends as dependencies when looking for orphans (unless flag is specified)
  • pacman only output information about uninstalled optdepends on package install