1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > linux redhat 7配置yum源 redhat7 配置国内清华大学yum源

linux redhat 7配置yum源 redhat7 配置国内清华大学yum源

时间:2019-03-27 15:22:41

相关推荐

linux redhat 7配置yum源 redhat7 配置国内清华大学yum源

#导入gpg key

rpm --import /RPM-GPG-KEY-

#在/etc/yum.repos.d/下安装elrepo.repo文件

yum install /elrepo-release-7.el7.elrepo.noarch.rpm

编辑 /etc/yum.repos.d/elrepo.repo 文件,在mirrorlist=开头的行前面加#注释掉;并将/linux替换为mirrors.tuna./elrepo

最后,更新软件包缓存

yum makecache

EPEL(Extra Packages for Enterprise Linux)是由Fedora Special Interest Group维护的Enterprise Linux(RHEL、CentOS)中经 常用到的包。

touch /etc/yum.repos.d/epel.repo

编辑文件/etc/yum.repos.d/epel.repo,内容如下:

[epel]

name=Extra Packages for Enterprise Linux 7 - $basearch

baseurl=https://mirrors.tuna./epel/7/$basearch

#mirrorlist=/metalink?repo=epel-7&arch=$basearch

failovermethod=priority

enabled=1

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7

[epel-debuginfo]

name=Extra Packages for Enterprise Linux 7 - $basearch - Debug

baseurl=https://mirrors.tuna./epel/7/$basearch/debug

#mirrorlist=/metalink?repo=epel-debug-7&arch=$basearch

failovermethod=priority

enabled=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7

gpgcheck=1

[epel-source]

name=Extra Packages for Enterprise Linux 7 - $basearch - Source

baseurl=https://mirrors.tuna./epel/7/SRPMS

#mirrorlist=/metalink?repo=epel-source-7&arch=$basearch

failovermethod=priority

enabled=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7

gpgcheck=1

保存,退出。

最后,yum makecache

标签:epel,mirrors,basearch,elrepo,清华大学,redhat7,yum,https

来源: /hyyx/p/14462901.html

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。