I have a script which removes libreoffice and installs openoffice instead, how can I get apt-get to stop requiring the user to confirm this operation? I only want this to happen in the script so what switches should I use? I also want to reduce the output so it doesn't clog up the console.
You need to use
To reduce the output you can redirect it to
To make it produce zero output (not even print errors):
Then, if something goes wrong, you will be able to find information in