Skip to content

Instantly share code, notes, and snippets.

Embed
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 http://mirrors.aliyun.com/repo/Centos-6.repo
# epel
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
# ius
rpm -Uvh https://centos6.iuscommunity.org/ius-release.rpm
# remi
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
# generate cache
yum makecache
# install git 2.x
yum install -y git2u
# or
# yum install http://opensource.wandisco.com/centos/6/git/x86_64/wandisco-git-release-6-1.noarch.rpm -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.