Ubuntu – What does -qq argument for apt-get mean

aptUbuntu

I just received a Vagrantfile and post install bash script. The vagrantfile downloads standard Ubuntu from Ubuntu Cloud but I found something in the bash script.

Few lines of script reads as:

apt-get update -qq > /dev/null
apt-get -qq -y install apache2 > /dev/null

I tried to search around the internet what -qq in shell script stands for, didn't get any mention of it, so, am asking here if anyone knows what it stands for.

AFAIK > /dev/null means the ongoing process is not printed in the screen, for that it doesn't require the -qq flag. So, I am really curious to know.

Best Answer

The -qq is a flag to apt-get to make it less noisy.

-qq No output except for errors

You are correct about the >/dev/null. By redirecting all the STDOUT, the -qq becomes redundant.