You are not logged in.

#1 2015-04-19 19:51:39

rilian-la-te
Member
Registered: 2012-08-24
Posts: 43

[pacman] Provides and dependency tracking.

If I have a repo with package foo-git that provides foo, have package bar depends on foo, and no package foo, what will pacman do when trying to install bar? I have 3 variants:
1. Pacman will fail with cannot resolve dependences.
2. Pacman will install foo-git and bar.

What variant now, and what preferred?

Last edited by rilian-la-te (2015-04-19 19:52:01)

Offline

#2 2015-04-19 20:05:05

runical
Member
From: The Netherlands
Registered: 2012-03-03
Posts: 896

Re: [pacman] Provides and dependency tracking.

If all is well, pacman will ask you which one to choose if there is more than one package providing the same thing. This is what happens when installing for example libgl.

Offline

#3 2015-04-19 20:49:08

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [pacman] Provides and dependency tracking.

Ummm, what' the third variant?

Offline

#4 2015-04-19 21:19:19

rilian-la-te
Member
Registered: 2012-08-24
Posts: 43

Re: [pacman] Provides and dependency tracking.

Runical write it. But I was not see it myself.

Offline

#5 2015-04-20 11:21:31

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,086

Re: [pacman] Provides and dependency tracking.

Pacman will only do what runical describes if those alternatives are present in the SAME repo .

Basically when pacman checks for dependencies, it goes through every repo listed in pacman.conf but stops once it has found that dependency.

say foo is present in [extra] and foo-git in [rilian-la-te-repo] .

If [extra] is above [rilian-la-te-repo] , pacman will always find foo in [extra] and install that version.

If you prefer pacman to use your version, you will have to list [rilian-la-te-repo] ABOVE [extra] .

Last edited by Lone_Wolf (2015-04-20 11:22:17)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB