Flattens apt-get commands into a single command