remove apt-get, this is centos
don't download packages each time, check for already downloaded package files to compile
fixed download logic