Created
December 23, 2025 09:20
-
-
Save qi7chen/9e0d185b5d52d3481c647266b9f7a3a6 to your computer and use it in GitHub Desktop.
CentOS 7 EOL initialization
This file contains hidden or 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
| mkdir ~/downloads; cd ~/downloads; mkdir -p /etc/yum.repos.d/backup && mv /etc/yum.repos.d/*.repo /etc/yum.repos.d/backup \ | |
| curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py && python get-pip.py && \ | |
| python -m pip install httpie && python -m httpie -dco /etc/yum.repos.d/CentOS-Vault.repo https://gist.github.com/qi7chen/85558424a66fdf6e692b1fa52bf9e53d/raw/3ed4330e6ffa8b26ddc61b2e6ed72ad0eff5fba5/CentOS-7.9.2009-Vault.aliyun.repo \ | |
| yum clean all && rm -rf /var/cache/yum && yum makecache fast && yum install -y make tar wget zip unzip git \ | |
| wget https://go.dev/dl/go1.21.13.linux-amd64.tar.gz && tar --remove-files -C /usr/local/ -xzvf go1.21.13.linux-amd64.tar.gz; \ | |
| cd ~ && rm -rf ~/downloads; go env; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment