Teemu Torma <[EMAIL PROTECTED]> writes:
> Is there any way to find the source media in urpmi (or urpmq) about a
> package?
Not yet.
> I have a concrete problem (no not really, I could figure it out, but for
> completeness sake, I'd like to find a way to do it with the tools).
>
> Today (or yesterday actually), I tried to make urpmi --auto-select, and
> it failed because it wanted to install libgd2, but some dependency
> problems with libgd1 causes it to fail. However, with --media cooker
> it works just fine, so the problematic package must be another media,
> since I have also contrib and plf installed.
>
> Is there currently any way to see the media of this libgd2 package using
> urpm tools?
perl -e 'use urpm; $a = new urpm; $a->configure(nocheck_access => 1);
$a->resolve_dependencies(\%s, {}, auto_select => 1);
foreach (sort { $a <=> $b } keys %{$s{selected}}) { my $p = $a->{depslist}[$_]
or next; print "$_:".$p->fullname."\n" } foreach (@{$a->{media}}) { print
"media from $_->{start} to $_->{end} is $_->{name}\n" }'
> Also it would be nice that urpmi would show when asking the media of
> selected package, so that I would could see if it is trying to install
> for example cooker freetype2 package over already installed one from
> plf.
You can add --media with the list of name to avoid selecting from other media.
Fran�ois.