Difference between revisions of "User:Allan/Pacman OptDepends"

From ArchWiki
Jump to: navigation, search
(Created page with '=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 dep...')
 
(Example)
Line 4: Line 4:
  
 
=Example=
 
=Example=
> pacman -S python
+
> pacman -S python
Optional dependencies for python
+
Optional dependencies for python
    tk: for IDLE, pynche and modulator
+
    tk: for IDLE, pynche and modulator
  
> pacman -Qi python
+
> pacman -Qi python
Optional Deps : tk: for IDLE, pynche and modulator
+
Optional Deps : tk: for IDLE, pynche and modulator
  
> pacman -S --asdep tk
+
> pacman -S --asdep tk
> pacman -Qi python
+
> pacman -Qi python
Optional Deps : tk: for IDLE, pynche and modulator (installed)
+
Optional Deps : tk: for IDLE, pynche and modulator (installed)
  
> pacman -Qqtd
+
> pacman -Qqtd
> pacman -Qqtd --optdep
+
> pacman -Qqtd --optdep
tk (optdepend for python)
+
tk (optdepend for python)
  
 
=Actual changes to make=
 
=Actual changes to make=

Revision as of 23:55, 5 March 2009

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)

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