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

From ArchWiki
Jump to: navigation, search
(How to improve?)
m (Other Ideas)
Line 36: Line 36:
 
* A flag/configuration option to install a packages optdepends by default
 
* A flag/configuration option to install a packages optdepends by default
 
* Add option to tell pacman if you want it to ask you about installing each single optdepend
 
* Add option to tell pacman if you want it to ask you about installing each single optdepend
 +
* Add option to tell pacman to list optdepends even when installed and indicate install status of each

Revision as of 19:29, 17 May 2011

The Idea

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

How to improve?

example package with optdepends

> 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 recognises installed optdepends

> pacman -S --asdep tk
> pacman -Qi python
Optional Deps : tk: for IDLE, pynche and modulator [installed]
> pacman -Qi tk
Required By: python (optional)

optdepends are not orphans unless a flag is specified

> pacman -Qtd
> pacman -Qtd --optdep
tk 8.5.6-1 (optdepend for python)

optdepends can be removed with -Rs

> pacman -Rs python
Remove (2): python-2.6.1-1  tk-8.5.6-1

information about optdepends is not output if an optdepends package is installed

> pacman -S tk
> pacman -S python
(no optional dependencies notification output)

Other Ideas

  • A flag/configuration option to install a packages optdepends by default
  • Add option to tell pacman if you want it to ask you about installing each single optdepend
  • Add option to tell pacman to list optdepends even when installed and indicate install status of each