<分区>
我是新手,试图在运行 CentOS 的 VPS 上安装 git。
我尝试了 yum install git-core
和 yum install git
都导致了 No package git-core available。
无事可做
。我猜 git
不在 CentOs 仓库中。
我在这里尝试了另一种方法:http://www.lunix.com.au/blog/install-gitosis-on-centos5/ .
运行 rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm
给我消息:
错误:跳过 http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm - 传输失败 - 未知或意外错误
警告:u 0x9079f18 ctrl 0x907ad30 nrefs != 0 (download.fedora.redhat.com http)
还有其他安装git
的方法吗?
更新
添加正确的 repo 后出现以下错误:
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package git.i386 0:1.7.4.1-1.el5 set to be updated
--> Processing Dependency: perl-Git = 1.7.4.1-1.el5 for package: git
--> Processing Dependency: perl(Error) for package: git
--> Processing Dependency: perl(Git) for package: git
--> Finished Dependency Resolution
git-1.7.4.1-1.el5.i386 from epel has depsolving problems
--> Missing Dependency: perl(Git) is needed by package git-1.7.4.1-1.el5.i386 (epel)
git-1.7.4.1-1.el5.i386 from epel has depsolving problems
--> Missing Dependency: perl-Git = 1.7.4.1-1.el5 is needed by package git-1.7.4.1-1.el5.i386 (epel)
git-1.7.4.1-1.el5.i386 from epel has depsolving problems
--> Missing Dependency: perl(Error) is needed by package git-1.7.4.1-1.el5.i386 (epel)
Error: Missing Dependency: perl-Git = 1.7.4.1-1.el5 is needed by package git-1.7.4.1-1.el5.i386 (epel)
Error: Missing Dependency: perl(Git) is needed by package git-1.7.4.1-1.el5.i386 (epel)
Error: Missing Dependency: perl(Error) is needed by package git-1.7.4.1-1.el5.i386 (epel)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.
我认为这可能是由于 cPanel,所以我做了 yum --disableexcludes=main install git
。然后它解决了依赖关系,我让它下载 git 包,但是它失败了:
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 217521f6
GPG key retrieval failed: [Errno 5] OSError: [Errno 2] No such file or directory:
/etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL