https://github.com/aminvakil/hasinmirror
Script to change mirrors in different linux distors package managers to mirrors.hasin.ir
https://github.com/aminvakil/hasinmirror
bash bash-script centos mirror ubuntu
Last synced: about 2 months ago
JSON representation
Script to change mirrors in different linux distors package managers to mirrors.hasin.ir
- Host: GitHub
- URL: https://github.com/aminvakil/hasinmirror
- Owner: aminvakil
- License: mit
- Created: 2020-01-06T13:58:42.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-24T22:04:39.000Z (over 3 years ago)
- Last Synced: 2025-02-15T23:25:30.656Z (over 1 year ago)
- Topics: bash, bash-script, centos, mirror, ubuntu
- Language: Shell
- Homepage:
- Size: 30.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Change mirrors to mirrros.hasin.ir
You could use this script which automatically replaces your existing mirrors to **mirrros.hasin.ir** which is located in Iran and would speed your updating, installing packages up.
**Supported and Tested Distros**:
Ubuntu 16.04
Ubuntu 18.04
CentOS 7
**Unsupported Distros**:
CentOS 8
**Read the script CAREFULLY before execution**
Other Ubuntu distros should work as well as they perform the same
**Ubuntu**: This script copies existing `/etc/apt/sources.list` to `/etc/apt/sources.list_hasinback` first automatically, therefore you can revert any changes made by this script. If you have any repos aside from official debian / ubuntu repos in your /etc/apt/sources.list you should add them again yourself in /etc/apt/sources.list.d which is more appropriate and suggested by debian/ubuntu themselves.
**CentOS**: This scripts just disables the existing official repos and add its repo in `/etc/yum.repos.d/centos-Samin.repo`, so for reverting you can remove this file and enable the official repos from `/etc/yum.repos.d/CentOS-Base.repo`.
**Arch Linux**: Arch is also available in **mirrors.hasin.ir**, although not included in this script.