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

Re: What's the "apt" equivalent of "apt-get upgrade"?



On Mon, Oct 27, 2025 at 11:42 AM Greg Wooledge <greg@wooledge.org> 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?
>
> apt-get has a "--with-new-pkgs" option to make it act like apt does.
>
> Presumably, then, you can somehow invert this option and give it to
> apt, to make apt act like apt-get does.
>
> Good luck figuring out how to invert the option, because the apt(8)
> man page is extremely sparse, and doesn't bother listing options.

I might be able to answer this one:

    $ sudo apt upgrade --without-new-pkgs
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    ...

But I am not sure if it actually accomplishes the goals.

Jeff


Reply to: