Hi,

On Wed, Aug 28, 2024 at 04:25:20AM +0800, Bret Busby wrote:
> On 28/8/24 03:03, Hans wrote:
> > So, my question is: Which one is recommended, when updating and upgrading is
> > used in a script, so that it causes as little as possible pain?

[…]

> apt update && apt full-upgrade -y && apt autoremove -y && apt autoclean

"apt" will say when it is used in a script that its user interface
is not yet stable (i.e. its output could change at any time) so it
should not be used in scripts.

Other replies have already covered the correct answer for
non-interactive use.

Thanks,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting

Reply via email to