On Sat, Nov 16, 2024 at 08:41:24PM +0100, Patrice Duroux wrote: > > > That's why I ended up with the suffix and letting the sysadmin > > (often me, with a different hat on ;-) making that preference > > explicit in the APT machinery. > > But could it be the a nice feature for apt to have a list apart on the > upgrading > (I would say then 'replacing') of such cases? > User can be alerted more easily during apt upgrade that some packages with a > same version could be replaced by the Debian archive ones. > apt list --replaceable > apt upgrade --no-replaceable > :-) > Note that it could be replacement from configured alternative source archives.
That sounds attractive, but I fear that it is practically unfeasible: whether a package is "replaceable" or not will depend a lot on "context", among other things on which other packages you have installed (that might be decided based on the dependency graph, but I fear it won't be sufficient), and on what use you are making of the installed packages (that can't be decided automatically). But it's interesting to ponder about such a kind of problem :-) Cheers -- tomás >
signature.asc
Description: PGP signature