works for me:

$ apt -y update && apt upgrade -y

You can also use yes(1):
yes | apt upgrade


On Wed, Apr 7, 2021 at 5:20 PM Keith Christian <keith1christ...@gmail.com>
wrote:

> Looking on the www, some people recommend using apt-get -y upgrade or
> apt-get -y install to avoid the following message:
>
>                     "NNN packages can be upgraded. Run 'apt list
> --upgradable' to see them."
>
> Is "apt" unable to perform an "upgrade," or am I missing a command
> line option (e.g. force?)
>
> Thanks.
>
>

Reply via email to