[TriLUG] URPMI and Emacs
Tanner Lovelace
lovelace at wayfarer.org
Tue May 14 14:58:31 EDT 2002
On Tue, 2002-05-14 at 14:37, Jeremy P wrote:
> Question about removing packages: Will urpmi look at the dependencies, and
> if they're not being used by other packages, remove the dependencies too?
> (I don't think there's an option for standard rpm for this, although
> *shudder* the standard Windows uninstaller can do this.) Can debian do
> this somehow?
>
> --Jeremy, used to the apt- and urpm-less world of Red Hat Linux.
Jeremy, I believe what you are talking about is something
like this:
[Package A] --depends on--> [Package B] --depends on--> [Package C]
where [Package C] doesn't depend on anything else and nothing else
depends on [Package C] and [Package B]. I believe
you're asking if you use urpmi (actually, the command is urpme,
where the "e" comes from the "-e" you pass to rpm to remove a
package) to delete [Package A], will it also delete packages
[B] and [C]. The answer to this is no. The cost of figuring
out all those links at run time would be to prohibitively
expensive (I believe the problem may even be NP-complete).
However, if you use urpme to delete [Package C] it will notice
that packages [A] and [B] depend on [C] and ask you if you
would like to delete [A] and [B] too.
I believe apt works in exactly the same way.
Tanner
--
Tanner Lovelace | lovelace at wayfarer.org | http://wtl.wayfarer.org/
--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--
GPG Fingerprint = A66C 8660 924F 5F8C 71DA BDD0 CE09 4F8E DE76 39D4
GPG Key can be found at http://wtl.wayfarer.org/lovelace.gpg.asc
--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--
Have we sent the "Don't shoot, we're pathetic" transmission yet?
Commander John Crichton (Farscape)
More information about the TriLUG
mailing list