On Sat, 22 Aug 2009, Robert P. J. Day wrote:

> On Sat, 22 Aug 2009, Niu Kun wrote:
>
> > Robert P. J. Day 写道:
> > > On Sat, 22 Aug 2009, Niu Kun wrote:
> > >
> > > > See if your 'apt-get' supports 'apt-get purge'.
> > >
> > > it does, but how does that solve my problem?  should i try to
> > > purge a package, then see what the result would be before saying
> > > yes/no?
>
> > Yes. apt-get will ask you if you'd like to remove the related
> > package.
>
>   right, so i can always just use "--dry-run" if i want.
>
> > Or you can use 'apt-cache show `packagename`'.
> > It'll list the related "Depends" package.
>
>   no, i want to go the *other* way -- to ask what currently-installed
> packages depend *on* a given, currently-installed package.

  actually, even though i was asking in the context of a system in the
process of upgrading on which there is all kinds of historical cruft
so i fully expect to find older versions of packages lying around, i
just noticed that the same thing happens on a fresh (and updated)
version of lenny (5.0.2).

  here are two currently installed packages (according to "dpkg -l"):

    gcc-4.2-base
    gcc-4.3-base

my immediate thought is -- why do i need both?  it's quite possible i
*do*, but i don't know how to verify that.  hence my question:  how
can i display what installed packages allegedly depend on
gcc-4.2-base, so that i know it's actually required to be on my
system.  i realize i can simulate trying to remove it to see what
would happen, but that strikes me as messy and overkill.

rday

p.s.  i warned you there would be more trivial questions. :-)
--

========================================================================
Robert P. J. Day                               Waterloo, Ontario, CANADA

        Linux Consulting, Training and Annoying Kernel Pedantry.

Web page:                                          http://crashcourse.ca
Twitter:                                       http://twitter.com/rpjday
========================================================================

Reply via email to