redhat7.4安装svn

Posted smilingeye

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了redhat7.4安装svn相关的知识,希望对你有一定的参考价值。

1.使用yum install subversion出错

已加载插件:langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
没有可用软件包 subversion。
错误:无须任何处理

意思即为:这是redhat 自带的 yum 源需要注册,花钱才能使用,怎么办呢,发现网上说可以替换。

2.替换为centos的yum

参考:https://blog.csdn.net/wqh0830/article/details/86727100

亲测可用,但需要改,例如文中7.6.1810,我使用cat /etc/redhat-release查到的是Red Hat Enterprise Linux Server release 7.4 (Maipo),直接改为7就可以,7的测试urlhttp://mirrors.163.com/centos/7/os/x86_64/repodata/repomd.xml,可访问即可。

7.6.1810测试url http://mirrors.163.com/centos/7.6.1810/os/x86_64/repodata/repomd.xml

技术图片

# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the 
# remarked out baseurl= line instead.
#
#
[base]
name=CentOS-7 - Base - 163.com
#mirrorlist=http://mirrorlist.centos.org/?release=7&arch=$basearch&repo=os
baseurl=http://mirrors.163.com/centos/7/os/$basearch/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7

#released updates
[updates]
name=CentOS-7 - Updates - 163.com
#mirrorlist=http://mirrorlist.centos.org/?release=7&arch=$basearch&repo=updates
baseurl=http://mirrors.163.com/centos/7/updates/$basearch/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7

#additional packages that may be useful
[extras]
name=CentOS-7 - Extras - 163.com
#mirrorlist=http://mirrorlist.centos.org/?release=7&arch=$basearch&repo=extras
baseurl=http://mirrors.163.com/centos/7/extras/$basearch/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-7 - Plus - 163.com
baseurl=http://mirrors.163.com/centos/7/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7

3.继续安装

https://www.cnblogs.com/liuxianan/p/linux_install_svn_server.html

以上是关于redhat7.4安装svn的主要内容,如果未能解决你的问题,请参考以下文章

linux12.04怎么安装高版本的svn

ubuntu svn 安装目录在哪

linux安装SVN并设置SVN钩子

如何删除ubuntu默认安装的svn

关于svn的安装(Linux+nginx+svn)

svn安装没有svn.exe问题