【阿里云镜像】配置阿里云RepoForge 镜像

简介: 【阿里云镜像】配置阿里云RepoForge 镜像

一、参考链接


阿里巴巴开源镜像站-OPSX镜像站-阿里云开发者社区 (aliyun.com)


repoforge镜像-repoforge下载地址-repoforge安装教程-阿里巴巴开源镜像站

(aliyun.com)


二、RepoForge 镜像介绍


Repoforge 是 RHEL 系统下的软件仓库,拥有 10000 多个软件包,被认为是最安全、最稳定的一个软件仓库。


下载地址: https://mirrors.aliyun.com/repoforge/


三、RepoForge 镜像配置


1、运行uname 获取 OS 版本号(


[root@centos ~]# uname  -a
Linux centos 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux


2、向系统中添加 Repoforge 的 GPG 公钥


[root@centos ~]# rpm --import https://mirrors.aliyun.com/repoforge/RPM-GPG-KEY.dag.txt
[root@centos ~]#


3、运行下列命令(以 OS 版本 7 为例):


sudo cat > /etc/yum.repos.d/rpmforge.repo << EOF
[rpmforge]
name = RHEL $releasever - RPMforge.net - dag
baseurl = https://mirrors.aliyun.com/repoforge/redhat/el7/en/$basearch/rpmforge
mirrorlist = http://mirrorlist.repoforge.org/el7/mirrors-rpmforge
enabled = 1
protect = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
gpgcheck = 1
[rpmforge-extras]
name = RHEL $releasever - RPMforge.net - extras
baseurl = https://mirrors.aliyun.com/repoforge/redhat/el7/en/$basearch/extras
mirrorlist = http://mirrorlist.repoforge.org/el7/mirrors-rpmforge-extras
enabled = 0
protect = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
gpgcheck = 1
[rpmforge-testing]
name = RHEL $releasever - RPMforge.net - testing
baseurl = https://mirrors.aliyun.com/repoforge/redhat/el7/en/$basearch/testing
mirrorlist = http://mirrorlist.repoforge.org/el7/mirrors-rpmforge-testing
enabled = 0
protect = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
gpgcheck = 1
EOF



4、更新YUM


[root@centos ~]# yum repolist
Loaded plugins: fastestmirror, versionlock
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * rpmforge: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
repo id               repo name                            status
base/7/x86_64    CentOS-7 - Base - mirrors.aliyun.com      10,072
extras/7/x86_64  CentOS-7 - Extras - mirrors.aliyun.com       500
rpmforge         RHEL  - RPMforge.net - dag                   245
updates/7/x86_64 CentOS-7 - Updates - mirrors.aliyun.com    3,242
repolist: 14,059
[root@centos ~]#
S-7 - Updates - mirrors.aliyun.com    3,242
repolist: 14,059
[root@centos ~]#


目录
打赏
0
0
0
0
18
分享
相关文章
mysqlbinlog: File ‘mysql-bin.000001;‘ not found (Errcode: 2 - No such file or directory)
mysqlbinlog: File ‘mysql-bin.000001;‘ not found (Errcode: 2 - No such file or directory)
718 0
如何简单快速搭建自己的云对象存储服务(OSS)
简单来说,其实我们只需要有一台服务器,利用服务器的各种资源,搭配其它厂商开发的软件,就能很轻易拥有自己的云对象存储服务。不需要在阿里云上花钱买什么服务,甚至还能自己给别人提供服务,真的是太爽了。
【CentOS8】 本地yum源配置
centos8系统的本地yum源配置稍稍有些不同
2247 0
【CentOS8】 本地yum源配置
为什么浏览器不能读取 JSX?
【8月更文挑战第30天】
161 4
{"level":"warn","ts":"2023-11-07T00:35:53.400+0800","caller":"etcdserver/server.go:2048",&
{"level":"warn","ts":"2023-11-07T00:35:53.400+0800","caller":"etcdserver/server.go:2048",&
Repo下载、编译AOSP源码:基于Ubuntu 21.04,android-12.1.0_r27
文章记录了作者在Ubuntu 21.04服务器上配置环境、下载并编译基于Android 12.1.0_r27版本的AOSP源码的过程,包括解决编译过程中遇到的问题和错误处理方法。
659 0
CentOS6使用第三方YUM源(EPEL、RPMForge和RPMFusion)
CentOS6使用第三方YUM源(EPEL、RPMForge和RPMFusion)
1019 0