Skip to content

Instantly share code, notes, and snippets.

#TEST - Fedora 34
#Based - lesstif/change-rocklinux-mirror.sh (https://gist.github.com/lesstif/d72b0d46e58bc7dfcfbed0c910833bc2)
#!/usr/bin/env bash
BASE_REPOS=/etc/yum.repos.d/fedora.repo
PARAM="r:hn"
KAIST="ftp.kaist.ac.kr\/fedora"
if [ "$(id -u)" != "0" ]; then
@kimlulz
kimlulz / change-centos-mirror.sh
Created August 2, 2021 04:55 — forked from lesstif/change-centos-mirror.sh
change centos mirror to korea's portal.(CentOS 를 카카오와 네이버로 변경)
#!/usr/bin/env bash
BASE_REPOS=/etc/yum.repos.d/CentOS-Linux-BaseOS.repo
PARAM="r:hkn"
KAKAO="mirror.kakao.com\/centos"
NAVER="mirror.navercorp.com\/centos"
if [ "$(id -u)" != "0" ]; then
echo "'$0' must be run as root" 1>&2
@kimlulz
kimlulz / change-rocklinux-mirror.sh
Created August 2, 2021 04:55 — forked from lesstif/change-rocklinux-mirror.sh
록키 리눅스 미러를 국내 포탈(navercloud)로 변경
#!/usr/bin/env bash
BASE_REPOS=/etc/yum.repos.d/Rocky-BaseOS.repo
PARAM="r:hn"
#KAKAO="mirror.kakao.com\/centos"
NAVER="mirror.navercorp.com\/rocky"
if [ "$(id -u)" != "0" ]; then
echo "'$0' must be run as root" 1>&2