prepare and install needed packages before downloading the source