title: How to bypass the user confirmation when installing packages on linux
body: <p>I'm writing a basic script in bash to automatically install a few packages on new machines (basically, the first script to run on a new machine before doing anything else). I'm downloading openssh-server and python for example.</p>
  
  <p>My goal is just to launch the script in sudo mode, wait a few minutes and get started. The only problem I'm facing is the machine requires the user to input "y" when needed and I can't find a way to bypass this.</p>
  
  <p>This is just a sample of my script :</p>
  
  <pre><code>#!/bin/bash
  
  sudo apt update
  sudo apt install openssh-server
  sudo apt-get install python3
  </code></pre>
  
  <p>what I expect is just run this command and let it roll without the user to have and put "y" when needed </p>
  
  <pre><code>sudo bash start-script.sh
  </code></pre>