You are not logged in.

#1 2023-06-18 20:31:37

D3vil0p3r
Member
Registered: 2022-11-05
Posts: 205

[SOLVED] Forcing installation of a dependency among the proposed ones

I was looking for "pipewire-pulse" package at https://archlinux.org/packages/extra/x8 … ire-pulse/ and I see that, among the dependencies, there is

pipewire-session-manager (wireplumber, pipewire-media-session)

Since wireplumber and pipewire-media-session are conflicting packages, when I install a package having "pipewire-pulse" as dependency, is there a way to force the installation of "wireplumber" sub-dependency instead of "pipewire-media-session" (that seems the one that pipewire-pulse installs by default) when I use the "--noconfirm" flag and without manually removing pipewire-media-session and installing wireplumber?

In general, if I use "--noconfirm", it will install the dependency at position 1) by default, that in this example is pipewire-media-session. What I would like is to force the installation of the other dependency or forcing it to be the default when I use "--noconfirm".

Last edited by D3vil0p3r (2023-06-18 21:29:13)

Offline

#2 2023-06-18 21:02:02

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: [SOLVED] Forcing installation of a dependency among the proposed ones

1. Don't use --noconfirm if you actually do want to be asked which option you want to confirm.

2. If this is a script, then feel free to use --noconfirm, but if it's in a script, just pre-install the option you want with --asdeps.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2023-06-18 21:24:11

D3vil0p3r
Member
Registered: 2022-11-05
Posts: 205

Re: [SOLVED] Forcing installation of a dependency among the proposed ones

My case was a custom PKGBUILD where I have pipewire-pulse as dependency. I guess that if I put as additional dependency "wireplumber" it should recognize it and pipewire-pulse will be installed as dependency of this custom pkg by using wireplumber instead of pipewire-media-session... I guess... I should test it.

Offline

#4 2023-06-18 21:27:02

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: [SOLVED] Forcing installation of a dependency among the proposed ones

Yes, if you are installing one of the options that satisfies a dependency in the same transaction as the package that requires it, then pacman will not prompt you to select an option.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2023-06-18 21:28:45

D3vil0p3r
Member
Registered: 2022-11-05
Posts: 205

Re: [SOLVED] Forcing installation of a dependency among the proposed ones

Perfect. Thank you for the clarification.

Offline

Board footer

Powered by FluxBB