mirror-web/_posts/help/2016-06-21-repoforge.md
Miao Wang 73be4313c3
fix the render problem of hostname in a markup template
fix #173

sed -i -r '/\{% *raw *%\}/,/\{% *endraw *%\}/{s/(\{\{ *site\.hostname *\}\})/{%endraw%}\1{%raw%}/g;}' *.md

Signed-off-by: Miao Wang <shankerwangmiao@gmail.com>
2020-03-24 23:36:51 +08:00

2.2 KiB

category layout mirrorid
help help repoforge

Repoforge (原Rpmforge) 镜像使用帮助

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

添加 Repoforge 仓库

  1. 运行 cat /etc/redhat-release 获取 EL 版本号(如 EL6, EL7 等)
  2. 向系统中添加 Repoforge 的 GPG 公钥:
rpm --import https://{{ site.hostname }}/repoforge/RPM-GPG-KEY.dag.txt
  1. 运行下列命令:
EL7 EL6 EL5 EL4 EL3

{% raw %}

{% endraw %}



更新软件包缓存

sudo yum makecache