Trying to use apt-get in a script, so I'm using the apt-get -qq -y
option, as I want to have my install script show something like...
Installing SUDO....DONE
But for some reason apt-get is still producing lots of output, with this option, which means I end up getting...
Installing SUDO....
Selecting previously unselected package sudo.
(Reading database ... 48056 files and directories currently installed.)
Preparing to unpack .../sudo_1.8.10p3-1+deb8u5_amd64.deb ...
Unpacking sudo (1.8.10p3-1+deb8u5) ...
Processing triggers for man-db (2.7.0.2-5) ...
Processing triggers for systemd (215-17+deb8u5) ...
Setting up sudo (1.8.10p3-1+deb8u5) ...
DONE
So my install script just looks messy for a basic package install, let alone for all the other packages.
Am I missing something?
Try to run sudo DEBIAN_FRONTEND=noninteractive apt-get install -qq sudo < /dev/null > /dev/null
Source: https://peteris.rocks/blog/quiet-and-unattended-installation-with-apt-get/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With