On Sat, 2004-02-14 at 04:10, [EMAIL PROTECTED] wrote: > Hi all, > > I've a problem which I cannot find a solution to in gentoo. > > Assume > A depends on D > B depends on >=D-2 > C depends on >=D-3 > > Further assume that I install packages A, B and C independently, and > in that order. > > Now it would seem that I have three versions of D (D-1, D-2, D-3) > installed, but according to the packages dependencies they would all > be happy with th latest version. So far I've been unable to find a > tool which lists these situations for me. I just today found that I > had 4 versions of db installed and I'm unsure wether i actually > _need_ all of them or if some users of db could do with a health > recompile towards a newer version. > > I checked with "qpkg -q D" and it says "A,B,C" depends on it. I get > the same answer to "qpkg -q D-2" and "qpkg -q D-3", so apparently > qpkg -q only lists _possible_ dependencies according the the emerge > file and current installed versions of D, rather than the actually > compiled-in dependency. > > Any suggestions as to how one can sort this out?
This situation varies depending on whether program "D" is SLOTted or not. When it has different SLOTs for different versions, multiple versions can be installed side-by-side. There is usually a good reason for doing so (for example, breaking programs that depended on D-1 in D-2). You could try `emerge depclean -p` to see whether any of the versions of "D" are candidates for removal. Another option would be to check the ebuilds of all packages depending on "D" to see whether they depend on a specific version (=version) or just >=version. I can't think of any better ways offhand. Thanks, Donnie
signature.asc
Description: This is a digitally signed message part
