Add --force-yes and --quiet flags to apt-get and git commands.