Created
March 24, 2022 08:50
-
-
Save dixyes/48660b4a2539ee9c8272066450fe2aef to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
mirror_host='mirrors.ustc.edu.cn' | |
sed -i 's|^#baseurl=|baseurl=|g' /etc/yum.repos.d/fedora* | |
sed -i 's|^metalink=|#metalink=|g' /etc/yum.repos.d/fedora* | |
sed -i 's|^download.example/pub/fedora/linux|'"${mirror_host}"'/fedora|g' /etc/yum.repos.d/fedora* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment