我正在尝试在 Scientific Linux 上安装 SVN 客户端,但如果我执行“sudo yum install subversion”,则会得到以下输出
Loaded plugins: refresh-packagekit, security
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package subversion.x86_64 0:1.7.8-1 will be installed
--> Processing Dependency: liblber-2.3.so.0()(64bit) for package: subversion-1.7.8-1.x86_64
--> Processing Dependency: libexpat.so.0()(64bit) for package: subversion-1.7.8-1.x86_64
--> Processing Dependency: libdb-4.3.so()(64bit) for package: subversion-1.7.8-1.x86_64
--> Processing Dependency: libneon.so.25()(64bit) for package: subversion-1.7.8-1.x86_64
--> Processing Dependency: libcrypto.so.6()(64bit) for package: subversion-1.7.8-1.x86_64
--> Processing Dependency: libldap-2.3.so.0()(64bit) for package: subversion-1.7.8-1.x86_64
--> Processing Dependency: libssl.so.6()(64bit) for package: subversion-1.7.8-1.x86_64
--> Running transaction check
---> Package compat-db43.x86_64 0:4.3.29-15.el6 will be installed
---> Package compat-expat1.x86_64 0:1.95.8-8.el6 will be installed
---> Package compat-openldap.x86_64 1:2.3.43-2.el6 will be installed
---> Package openssl098e.x86_64 0:0.9.8e-17.el6_2.2 will be installed
---> Package subversion.x86_64 0:1.7.8-1 will be installed
--> Processing Dependency: libneon.so.25()(64bit) for package: subversion-1.7.8-1.x86_64
--> Finished Dependency Resolution
You could try using --skip-broken to work around the problem
** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:
httpd-tools-2.2.15-15.sl6.1.x86_64 is a duplicate with httpd-tools-2.2.15-15.sl6.x86_64
答案1
您安装的软件包(特别是httpd-tools
)与发行版存储库不同步。您需要先恢复同步,然后才能继续。
解决此问题的方法:
- 用于
yum clean all
清除本地缓存和元数据。下次运行时它将被重建yum
。 - 用于
yum distro-sync
使您的系统与存储库状态同步。这可能会升级和降级软件包,因此在提交之前请仔细检查它要做什么。
一旦完成后,您就应该能够安装进一步的软件包(例如subversion
)。
答案2
从http://tecadmin.net/install-subversion-1-8-on-centos-rhel/
创造/etc/yum.repos.d/wandisco-svn.repo
For CentOS/RHEL 6 Users:
[WandiscoSVN]
name=Wandisco SVN Repo
baseurl=http://opensource.wandisco.com/centos/6/svn-1.8/RPMS/$basearch/
enabled=1
gpgcheck=0
For CentOS/RHEL 5 Users:
[WandiscoSVN]
name=Wandisco SVN Repo
baseurl=http://opensource.wandisco.com/centos/5/svn-1.8/RPMS/$basearch/
enabled=1
gpgcheck=0
then
# yum clean all
# yum install subversion
# svn --version
run `# yum remove subversion` to remove old version