I created a simple script downloading basic libs from my server. It requires wget. I didn't test it in any way. I'll answer the rest of stuff soon.
bunzip2 ***.tar.bz2 tar -xvf ***.tar