Only install things if needed to speed up apt-get