個人Linux安裝的是Centos6.4,昨天在系統裏使用yum安裝了git,但是在往git@osc上push代碼的時候,報出了錯誤,社區裏有人說須要升級git到1.8.3版本以上,因而就搜索到了這麼一個方法,挺好用的,我在這裏mark一下,以便之後用到的時候拿出來,嘿嘿。git
1. Download PUIAS repo:spring
wget -O /etc/yum.repos.d/PUIAS_6_computational.repo https://gitlab.com/gitlab-org/gitlab-recipes/raw/master/install/centos/PUIAS_6_computational.repo
centos
2. Next download and install the GPG key:app
wget -O /etc/pki/rpm-gpg/RPM-GPG-KEY-puias http://springdale.math.ias.edu/data/puias/6/x86_64/os/RPM-GPG-KEY-puias && rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-puias
gitlab
3. Verify that the key was installed successfully:ui
rpm -qa gpg*
this
4. Verify that the EPEL and PUIAS Computational repositories are enabled:spa
yum repolist
.net
5. Install Git 1.8code
yum --enablerepo=PUIAS_6_computational install git
Note: I am not quite happy with this solution, as it only netted me Git 1.8.3 however I do not have the time to find a better solution right now.
學PHP的小螞蟻 原創博客 http://my.oschina.net/woshixiaomayi/blog