Sometimes you might be installing a package and don’t want it to prompt at all. Apt will prompt you a lot sometimes if you just do an apt-get install packageName. For example
If you want to install, if there are multiple packages</span>
* Accept package from a signed repo that you don’t have the key for
* If you want to keep the old config
So you can run the following
apt-get -q -y -o DPkg::Options::=--force-confold --force-yes install packageName