On Tue, Oct 28, 2025 at 10:03:36 +0700, Max Nikulin wrote: > On 27/10/2025 22:41, Greg Wooledge wrote: > > On Mon, Oct 27, 2025 at 15:26:00 +0000, Ottavio Caruso wrote: > > > How do I get "apt upgrade" to behave like "apt-get upgrade", that is, to > > > upgrade packages very conservatively?[...]> Good luck figuring out how to > > > invert the option, because the apt(8) > > man page is extremely sparse, and doesn't bother listing options. > > Greg, a month ago you posted nice summary for apt and apt-get behavior in > respect to installing, removing packages and .deb file cache: > > Greg Wooledge. Re: No ssh service after upgrade from trixie Sid to forky > Sid. Fri, 12 Sep 2025 07:18:49 -0400. > <https://lists.debian.org/msgid-search/[email protected]>
Yes. That's a summary of what the tools do, including precisely one option for apt-get. A sensible person would choose the tool that does what they want. But what Ottavio asked was how to make apt act like apt-get, and it's not at all clear how to do that. One must guess whether the opposite of "--with-new-pkgs" is "--no-new-pkgs" or "--without-new-pkgs" or something entirely different, possibly "-o APT::Get::Upgrade-Allow-New=false". Or maybe there is no way to request this behavior at all. In this thread, I believe 1 or 2 people offered "--without-new-pkgs" as an answer, but they noted that this was just a theory which had not been tested. Perhaps a better answer to Ottavio would have been "just use apt-get since that does what you want". I don't know why he wants to use apt for this.

