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

Re: Is this really the right thing to do?



Finding out if a package has no dependencies is done already,
when you try to delete one.  The flag I suggested would
be a display-only thing in dselect, using this mechanism.
Your counter may perhaps be a useful performance enhancement though.

Note that you can't just delete packages as count goes to zero
(or the last dependand is removed) because it may provide 
something useful by itself.
Example:  You may still want to keep "xterm", even if you removed all the
programs that depend on it.  

Helge Hafting
 
> Why not use a counter ? When a package is installed it increments the
> counters of the packages it depends on. Deleting a package also decrements
> the counters of the others. If a counter gets zero it can safely be deleted.
> 
[included article]
> >An option for showing only those packages that nothing depends on 
> >could be useful.  Or a flag for every installed package showing if
> >there is dependencies.  
> >



Reply to: