安装 SVN - Subversion 需要什么存储库?

安装 SVN - Subversion 需要什么存储库?

我正在尝试安装 SVN (subversion),但是当我运行时

$yum install svn

我刚刚得到

参数不匹配:SVN

我需要配置和/或添加什么存储库才能安装它?

编辑

这是我的重新整理

AppStream                                                                      CentOS-8 - AppStream                                                                                                  disabled
AppStream-source                                                               CentOS-8 - AppStream Sources                                                                                          disabled
BaseOS                                                                         CentOS-8 - Base                                                                                                       enabled: 1,697
BaseOS-source                                                                  CentOS-8 - BaseOS Sources                                                                                             disabled
PowerTools                                                                     CentOS-8 - PowerTools                                                                                                 disabled
base-debuginfo                                                                 CentOS-8 - Debuginfo                                                                                                  disabled
c8-media-AppStream                                                             CentOS-AppStream-8 - Media                                                                                            disabled
c8-media-BaseOS                                                                CentOS-BaseOS-8 - Media                                                                                               disabled
centos-8.0-updates-media-AppStream                                             CentOS-Updates-AppStream-8.0 - Media                                                                                  disabled
centos-8.0-updates-media-BaseOS                                                CentOS-Updates-BaseOS-8.0 - Media                                                                                     disabled
centosplus                                                                     CentOS-8 - Plus                                                                                                       disabled
centosplus-source                                                              CentOS-8 - Plus Sources                                                                                               disabled
cr                                                                             CentOS-8 - cr                                                                                                         disabled
*epel                                                                          Extra Packages for Enterprise Linux 8 - x86_64                                                                        enabled: 7,145
epel-debuginfo                                                                 Extra Packages for Enterprise Linux 8 - x86_64 - Debug                                                                disabled
*epel-modular                                                                  Extra Packages for Enterprise Linux Modular 8 - x86_64                                                                enabled:     0
epel-modular-debuginfo                                                         Extra Packages for Enterprise Linux Modular 8 - x86_64 - Debug                                                        disabled
epel-modular-source                                                            Extra Packages for Enterprise Linux Modular 8 - x86_64 - Source                                                       disabled
epel-playground                                                                Extra Packages for Enterprise Linux 8 - Playground - x86_64                                                           disabled
epel-playground-debuginfo                                                      Extra Packages for Enterprise Linux 8 - Playground - x86_64 - Debug                                                   disabled
epel-playground-source                                                         Extra Packages for Enterprise Linux 8 - Playground - x86_64 - Source                                                  disabled
epel-source                                                                    Extra Packages for Enterprise Linux 8 - x86_64 - Source                                                               disabled
epel-testing                                                                   Extra Packages for Enterprise Linux 8 - Testing - x86_64                                                              disabled
epel-testing-debuginfo                                                         Extra Packages for Enterprise Linux 8 - Testing - x86_64 - Debug                                                      disabled
epel-testing-modular                                                           Extra Packages for Enterprise Linux Modular 8 - Testing - x86_64                                                      disabled
epel-testing-modular-debuginfo                                                 Extra Packages for Enterprise Linux Modular 8 - Testing - x86_64 - Debug                                              disabled
epel-testing-modular-source                                                    Extra Packages for Enterprise Linux Modular 8 - Testing - x86_64 - Source                                             disabled
epel-testing-source                                                            Extra Packages for Enterprise Linux 8 - Testing - x86_64 - Source                                                     disabled
extras                                                                         CentOS-8 - Extras                                                                                                     disabled
extras-source                                                                  CentOS-8 - Extras Sources                                                                                             disabled
fasttrack                                                                      CentOS-8 - fasttrack                                                                                                  disabled                                                              
teams                                                                          teams                                                                                                                 disabled
teamviewer                                                                     TeamViewer - x86_64                                                                                                   disabled

解决方案

看起来我需要启用我的 AppStream 存储库,因为我一一前往不同的存储库启用并运行 $yum install svn 命令。

答案1

一般来说你可以使用yum whatprovides看看需要什么包。

例如

% sudo yum whatprovides '/usr/bin/svn'
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
subversion-1.7.14-16.el7.i686 : A Modern Concurrent Version Control System
Repo        : base
Matched from:
Filename    : /usr/bin/svn



subversion-1.7.14-16.el7.x86_64 : A Modern Concurrent Version Control System
Repo        : base
Matched from:
Filename    : /usr/bin/svn

这告诉我们包名称是“subversion”

如果您不确定完整路径,那么您可以使用通配符(例如yum whatprovides '*/svn'),但这也会报告还包含 svn 组件的其他包(例如subversion-ruby)。

答案2

您可以svn通过以下方式安装:

sudo yum install subversion
sudo yum install mod_dav_svn

相关内容