在RHEL中,yum的配置文件为/etc/yum.repos.d/redhat.repo
里面是空的,没有任何仓库。

在这个目录下新建一个tsinghua.repo文件,写入:

[rhel-8-baseos-beta-source-rpms]
name = Red Hat Enterprise Linux 8 - BaseOS Beta (Source RPMs)
baseurl = https://mirrors.tuna.tsinghua.edu.cn/redhat/rhel/rhel-8-beta/baseos/source/
enabled = 1
gpgcheck = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release[rhel-8-for-aarch64-baseos-beta-rpms]
name = Red Hat Enterprise Linux 8 for ARM 64 - BaseOS Beta (RPMs)
baseurl = https://mirrors.tuna.tsinghua.edu.cn/redhat/rhel/rhel-8-beta/baseos/aarch64/
enabled = 1
gpgcheck = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release[rhel-8-for-ppc64le-baseos-beta-rpms]
name = Red Hat Enterprise Linux 8 for Power, little endian - BaseOS Beta (RPMs)
baseurl = https://mirrors.tuna.tsinghua.edu.cn/redhat/rhel/rhel-8-beta/baseos/ppc64le/
enabled = 1
gpgcheck = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release[rhel-8-for-s390x-baseos-beta-rpms]
name = Red Hat Enterprise Linux 8 for IBM z Systems - BaseOS Beta (RPMs)
baseurl = https://mirrors.tuna.tsinghua.edu.cn/redhat/rhel/rhel-8-beta/baseos/s390x/
enabled = 1
gpgcheck = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release[rhel-8-for-x86_64-baseos-beta-rpms]
name = Red Hat Enterprise Linux 8 for x86_64 - BaseOS Beta (RPMs)
baseurl = https://mirrors.tuna.tsinghua.edu.cn/redhat/rhel/rhel-8-beta/baseos/x86_64/
enabled = 1
gpgcheck = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release[rhel-8-appstream-beta-source-rpms]
name = Red Hat Enterprise Linux 8 - AppStream Beta (Source RPMs)
baseurl = https://mirrors.tuna.tsinghua.edu.cn/redhat/rhel/rhel-8-beta/appstream/source/
enabled = 1
gpgcheck = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release[rhel-8-for-aarch64-appstream-beta-rpms]
name = Red Hat Enterprise Linux 8 for ARM 64 - AppStream Beta (RPMs)
baseurl = https://mirrors.tuna.tsinghua.edu.cn/redhat/rhel/rhel-8-beta/appstream/aarch64/
enabled = 1
gpgcheck = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release[rhel-8-for-ppc64le-appstream-beta-rpms]
name = Red Hat Enterprise Linux 8 for Power, little endian - AppStream Beta (RPMs)
baseurl = https://mirrors.tuna.tsinghua.edu.cn/redhat/rhel/rhel-8-beta/appstream/ppc64le/
enabled = 1
gpgcheck = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release[rhel-8-for-s390x-appstream-beta-rpms]
name = Red Hat Enterprise Linux 8 for IBM z Systems - AppStream Beta (RPMs)
baseurl = https://mirrors.tuna.tsinghua.edu.cn/redhat/rhel/rhel-8-beta/appstream/s390x/
enabled = 1
gpgcheck = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release[rhel-8-for-x86_64-appstream-beta-rpms]
name = Red Hat Enterprise Linux 8 for x86_64 - AppStream Beta (RPMs)
baseurl = https://mirrors.tuna.tsinghua.edu.cn/redhat/rhel/rhel-8-beta/appstream/x86_64/
enabled = 1
gpgcheck = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release[rhel-8-ha-beta-source-rpms]
name = Red Hat Enterprise Linux 8 - HighAvailability Beta (Source RPMs)
baseurl = https://mirrors.tuna.tsinghua.edu.cn/redhat/rhel/rhel-8-beta/add-ons/ha/source/
enabled = 1
gpgcheck = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release[rhel-8-for-ppc64le-ha-beta-rpms]
name = Red Hat Enterprise Linux 8 for Power, little endian - HighAvailability Beta (RPMs)
baseurl = https://mirrors.tuna.tsinghua.edu.cn/redhat/rhel/rhel-8-beta/add-ons/ha/ppc64le/
enabled = 1
gpgcheck = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release[rhel-8-for-s390x-ha-beta-rpms]
name = Red Hat Enterprise Linux 8 for IBM z Systems - HighAvailability Beta (RPMs)
baseurl = https://mirrors.tuna.tsinghua.edu.cn/redhat/rhel/rhel-8-beta/add-ons/ha/s390x/
enabled = 1
gpgcheck = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release[rhel-8-for-x86_64-ha-beta-rpms]
name = Red Hat Enterprise Linux 8 for x86_64 - HighAvailability Beta (RPMs)
baseurl = https://mirrors.tuna.tsinghua.edu.cn/redhat/rhel/rhel-8-beta/add-ons/ha/x86_64/
enabled = 1
gpgcheck = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release[rhel-8-rs-beta-source-rpms]
name = Red Hat Enterprise Linux 8 - ResilientStorage Beta (Source RPMs)
baseurl = https://mirrors.tuna.tsinghua.edu.cn/redhat/rhel/rhel-8-beta/add-ons/rs/source/
enabled = 1
gpgcheck = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release[rhel-8-for-ppc64le-rs-beta-rpms]
name = Red Hat Enterprise Linux 8 for Power, little endian - ResilientStorage Beta (RPMs)
baseurl = https://mirrors.tuna.tsinghua.edu.cn/redhat/rhel/rhel-8-beta/add-ons/rs/ppc64le/
enabled = 1
gpgcheck = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release[rhel-8-for-s390x-rs-beta-rpms]
name = Red Hat Enterprise Linux 8 for IBM z Systems - ResilientStorage Beta (RPMs)
baseurl = https://mirrors.tuna.tsinghua.edu.cn/redhat/rhel/rhel-8-beta/add-ons/rs/s390x/
enabled = 1
gpgcheck = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release[rhel-8-for-x86_64-rs-beta-rpms]
name = Red Hat Enterprise Linux 8 for x86_64 - ResilientStorage Beta (RPMs)
baseurl = https://mirrors.tuna.tsinghua.edu.cn/redhat/rhel/rhel-8-beta/add-ons/rs/x86_64/
enabled = 1
gpgcheck = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release[rhel-8-rt-beta-source-rpms]
name = Red Hat Enterprise Linux 8 - RT Beta (Source RPMs)
baseurl = https://mirrors.tuna.tsinghua.edu.cn/redhat/rhel/rhel-8-beta/add-ons/rt/source/
enabled = 1
gpgcheck = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release[rhel-8-for-x86_64-rt-beta-rpms]
name = Red Hat Enterprise Linux 8 for x86_64 - RT Beta (RPMs)
baseurl = https://mirrors.tuna.tsinghua.edu.cn/redhat/rhel/rhel-8-beta/add-ons/rt/x86_64/
enabled = 1
gpgcheck = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

然后执行命令:

sudo yum clean all
sudo yum makecache
sudo yum update

rhel yum 配置清华源相关推荐

  1. centos 系统软件包管理 yum 本地yum配置 扩展源epel rpm 清除yum缓存 yum provides */vim 第十节课...

    centos  系统软件包管理  yum 本地yum配置  扩展源epel  rpm  清除yum缓存  yum provides "*/vim"   第十节课 你不能保证可逆化操 ...

  2. win10配置清华源——快速安装anaconda、TensorFlow和pytorch

    一.下载安装Anaconda 清华源镜像下载地址:https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/ 一直next即可 查看conda版本:c ...

  3. conda配置清华源

    conda配置清华源 问题描述 在Anaconda下准备下载东西的时候,出现了这样的报错或者出现下载速度极其慢: 原因 因为默认下载东西的链接是国外的镜像,存在一些问题,因此将源改成国内的镜像即可. ...

  4. CentOS8 yum配置阿里源

    CentOS8 yum配置阿里源 1.配置vmware虚拟网络 2.修改本机网卡(记得要和上一张图的ip网段相同,否则不成功) 3.然后进入/etc/yum.repos.d目录 4.创建目录backu ...

  5. Yum工具详解(二)-----Yum配置阿里源

    准备阶段 0.检查wget是否下载 yum install -y wget 阿里源配置 1.进入yum源的配置文件下 cd /etc/yum.repos.d/ # 进入到yum源的配置文件中 rm - ...

  6. RHEL / CentOS 配置epel源

    epel 是什么? epel的全称叫 Extra Packages for Enterprise Linux. EPEL 是由 Fedora 社区打造,为 RHEL 及衍生发行版如 CentOS.Sc ...

  7. HOSTNAME问题 和yum配置163源的操作 安装lsb_release,KSH,CSH

    HOSTNAME 在 /etc/hosts 里添加一行 127.0.0.1 yourhostname yum配置 来自http://www.cnblogs.com/wutengbiao/p/41889 ...

  8. Python配置清华源

    1. conda 清华源设置 添加清华源: conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs ...

  9. Debian配置清华源

    确定debian的系统版本 plc@debian:~$ cat /etc/os-release PRETTY_NAME="Debian GNU/Linux 9 (stretch)" ...

最新文章

  1. 分布式技术一周技术动态 2016-11-27
  2. 压缩机html200a功率,汽车空调功率有多大?如果用电瓶充电器供电能行吗?
  3. Java -- JDBC 学习--数据库连接池
  4. Unknown CMake command add_compile_definitions
  5. 天梯赛-是否完全二叉搜索树
  6. MySQL Workbench工具设置编码
  7. 非极大值抑制(non-maximum suppression)的理解与实现
  8. 微信公众号开发 ----微信获取access_token(2)
  9. 为什么 PSP22 对 Polkadot 生态系统很重要
  10. 回溯算法-八皇后问题
  11. Microsoft.NET Framework 3.5Service Pack1下载Windows功能失败原因
  12. repo init 下载代码error.GitError: manifests ls-remote: usage: git ls-remote
  13. Android判断当前系统时间是否在指定时间的范围内(免消息打扰)
  14. OpenCV图像处理基础(C++版)
  15. 224除以10为什么等于22c语言,C语言 编程练习22
  16. QQ轻聊版、TIM版无法修改个人文件夹位置的解决方法
  17. 一点点linux系统的学习心得
  18. 2006-2010年美国纽约市空气中一氧化碳污染情况分析
  19. linux如何判断网线插入_网卡如何识别10M/100M,如何检测网线插入
  20. 金蝶K/3 wise基础资料界面 复制按钮灰色无法选中的问题

热门文章

  1. 电脑突然没声音了怎么办?
  2. 做游戏的盈利路径有很多
  3. 【ManageEngine卓豪】局域网监控的作用
  4. JavaScript学习记录-正则表达式(2)
  5. 北方工业大学计算机学院院长,王景中(北方工业大学院长)_百度百科
  6. 解决LRC2021在windows系统上安装失败问题 Lightroom Classic v10.4中文安装教程 一看就会安装
  7. HDU 3622 Bomb Game / 2-SAT
  8. 今天架了个奇迹的私服
  9. 用晨曦记账本,设置多功能打印账目
  10. 3D模型欣赏:2000宝马E46瓦罐 光影材质逼真,还以为是真的一样!