added support for package manager repo mirror with apt-get and yum

Generalize package manager repository mirror installation for debian-based and redhat based machines