Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
各种 centos 6 依赖库
# backup
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
# aliyun
wget -O /etc/yum.repos.d/CentOS-Base.repo
wget -O /etc/yum.repos.d/epel.repo
wget -O /etc/yum.repos.d/ius.repo
# epel
rpm -Uvh
# ius
rpm -Uvh
# remi
rpm -Uvh
# generate cache
yum clean all && yum makecache
# install git 2.x
yum install -y git2u
# or
# yum install -y
# yum install -y git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.