non interactive apt upgrade 16.04

Asked by npandith

Hello,

I am trying to automate patching ubuntu servers(apt upgrade) in my environment and during the upgrade it asks me to enter yes, no or to use default to override certain configuration files.

How do I make sure apt upgrade will not prompt me again?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

You have to distinguish two different kinds of questions.

1. The questions answered by apt (e.g. "There are (number) package updates available, do you want to install them"). These can be avoided with the "-y" or "--yes" or "--assume-yes" flags when starting apt.

2. Questions asked during update of packages (e.g. "there is a new configuration file to be installed, do you want to keep the old one, or install the new one, or make a comparison between them"). I am not aware of a possibility to prevent such question being asked.

Can you help with this problem?

Provide an answer of your own, or ask npandith for more information if necessary.

To post a message you must log in.