[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: "What satisfies this dependancy?"



On Mon, Dec 09, 2002 at 11:11:31PM +0000, Colin Watson wrote:
> On Mon, Dec 09, 2002 at 05:37:18PM -0500, Travis Crump wrote:
> > Phil Edwards wrote:
> > >We all know how packages can provide meta-virtual-package-dependancy
> > >thingies, e.g., the mailx package requires a mail-transport-agent package,
> > >and a bunch of packages all provide mail-transport-agent, so take your 
> > >pick.
> > >
> > >How do I discover what installed package is currently providing/satisfying
> > >one of those kinds of dependancies?  Continuing the above example,
> > >how do I find out which of the many possible packages is providing
> > >mail-transport-agent on an installed system?
> > >
> > >(The actual problems at hand are with libraries, but the solution should
> > >be the same, or similar enough.)
> > 
> > Install grep-dctrl and then you can use "grep-available -F Provides -s 
> > Package mail-transport-agent"
> 
> .. and, if you want just installed packages, something like this should
> do:
> 
>   grep-status -FStatus 'ok installed' | \
>     grep-dctrl -FProvides -nsPackage mail-transport-agent

Interesting package. What I've been doing is:

  dpkg -s `apt-cache search mail-transport-agent|sed s/\ -.*//` | \
    grep -B1 ^Status:\ install | sed -n 1~3p

-- 
Seneca
seneca-cunningham@rogers.com



Reply to: