CentOS:
wget http://mirror.hostiran.ir/howto/centos/CentOS-Base.repo -O /etc/yum.repos.d/CentOS-Base.repo
wget http://mirror.hostiran.ir/howto/centos/CentOS-fasttrack.repo -O /etc/yum.repos.d/CentOS-fasttrack.repo
wget http://mirror.hostiran.ir/howto/centos/epel-testing.repo -O /etc/yum.repos.d/epel-testing.repo
wget http://mirror.hostiran.ir/howto/centos/epel.repo -O /etc/yum.repos.d/epel.repo
yum clean all;yum makecache;yum repo-list

Ubuntu:
cp /etc/apt/sources.list /etc/apt/sources.list.bak
curl https://mirror.hostiran.ir/howto/ubuntu/sources.list | sed 's/VERSION_CODENAME/'$(cat /etc/os-release | grep VERSION_CODENAME | cut -d "=" -f2)'/g' > /etc/apt/sources.list;cat /etc/apt/sources.list;apt update

Debian:
cp /etc/apt/sources.list /etc/apt/sources.list.bak
wget https://mirror.hostiran.ir/howto/debian/sources.list -O sources.list
sed 's/VERSION_CODENAME/'$(cat /etc/os-release | grep VERSION_CODENAME | cut -d "=" -f2)'/g' sources.list > /etc/apt/sources.list;cat /etc/apt/sources.list;apt update