侧边栏

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

 

新建CentOS7-Base-163.repo文件,写入下面内容

# 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

4.centos7-yum下载地址

链接:https://pan.baidu.com/s/1-jEAEzo3Et8Gr9E714g0ig
提取码:1uyr

posted on 2019-07-15 12:51  SmilingEye  阅读(725)  评论(0编辑  收藏  举报

导航