FS#11337 - Pacman: Option to install optional dependencies with package.
Attached to Project:
Pacman
Opened by Xyne (Xyne) - Friday, 29 August 2008, 02:05 GMT
Last edited by Dan McGee (toofishes) - Sunday, 31 August 2008, 23:47 GMT
Opened by Xyne (Xyne) - Friday, 29 August 2008, 02:05 GMT
Last edited by Dan McGee (toofishes) - Sunday, 31 August 2008, 23:47 GMT
|
Details
Description:
It would be nice to have an option to either install all optional dependencies or be prompted for each one when installing packages. Code: --optdeps all Install all optdeps. Code: --optdeps prompt If a package contains optional dependencies, prompt the user with "Install optional dependencies for <pkgname>? (all/prompt/none) If the user chooses "prompt", prompt with an "install <optdepname>? (y/n)" message for each optional dependency in the given package. Code: --optdeps none Only list the optional dependencies without installing them (default when no "--optdeps" option is passed). Maybe use "-o" as an abbreviation for "--optdeps" and "a","p", and "n" as abbreviations for "all", "prompt", and "none", resp. |
This task depends upon
$ LANG=C sudo ./pacman -S wine
warning: wine-1.1.4-1 is up to date -- reinstalling
Optional dependencies for wine
cups: printing support
sane: scanners support
libgphoto2: digital cameras support
alsa-lib: sound support
giflib: GIF images support
libjpeg: JPEG images support
libpng: PNG images support
:: Install optional dependencies? [Y/n] y
:: Install all optional dependencies? [Y/n] n
:: Install optional dependency cups? [Y/n] n
:: Install optional dependency sane? [Y/n] n
:: Install optional dependency libgphoto2? [Y/n] n
:: Install optional dependency alsa-lib? [Y/n] y
:: Install optional dependency giflib? [Y/n] n
:: Install optional dependency libjpeg? [Y/n] n
:: Install optional dependency libpng? [Y/n] y
warning: alsa-lib-1.0.17a-1 is up to date -- reinstalling
warning: libpng-1.2.31-1 is up to date -- reinstalling
resolving dependencies...
looking for inter-conflicts...
Targets (3): wine-1.1.4-1 alsa-lib-1.0.17a-1 libpng-1.2.31-1
Maybe with an option in pacman.conf to switch between this and printing only. And filtering the optdepends which are already installed.
Is sync_trans the right place to do this?
Also, do you still have sources for your metapax project? I found it mentioned, but links are dead. I found only makedep.
0002-Add-option-to-enable-ask... (1.7 KiB)
https://github.com/archlinuxfr/yaourt/issues/46