redhat linux 8 安装 阿里云centos-8 yum源(网络yum源配置)

这篇具有很好参考价值的文章主要介绍了redhat linux 8 安装 阿里云centos-8 yum源(网络yum源配置)。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

1、起因:

使用redhat自带镜像yum源安装软件时,报错:unable to read consumer identity。这个提示告诉我们,yum没有读取到你的用户id。如果你想使用redhat同步不想花费几千元注册系统,就可以使用centos的yum源来代替。

2、centos-8 yum网络源配置

        2.1、访问阿里云镜像站,下载repo镜像下载页
        地址:https://mirrors.aliyun.com/repo/
        下载:Centos-8.repo
        打开所下载的centos-8.repo,上传至/etc/yum.repos.d/目录下

[root@server130 yum.repos.d]# cat Centos-8.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-$releasever - Base - mirrors.aliyun.com
#failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos/$releasever/BaseOS/$basearch/os/
        http://mirrors.aliyuncs.com/centos/$releasever/BaseOS/$basearch/os/
        http://mirrors.cloud.aliyuncs.com/centos/$releasever/BaseOS/$basearch/os/
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official
 
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras - mirrors.aliyun.com
#failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos/$releasever/extras/$basearch/os/
        http://mirrors.aliyuncs.com/centos/$releasever/extras/$basearch/os/
        http://mirrors.cloud.aliyuncs.com/centos/$releasever/extras/$basearch/os/
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official
 
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus - mirrors.aliyun.com
#failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos/$releasever/centosplus/$basearch/os/
        http://mirrors.aliyuncs.com/centos/$releasever/centosplus/$basearch/os/
        http://mirrors.cloud.aliyuncs.com/centos/$releasever/centosplus/$basearch/os/
gpgcheck=1
enabled=0
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official
 
[PowerTools]
name=CentOS-$releasever - PowerTools - mirrors.aliyun.com
#failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos/$releasever/PowerTools/$basearch/os/
        http://mirrors.aliyuncs.com/centos/$releasever/PowerTools/$basearch/os/
        http://mirrors.cloud.aliyuncs.com/centos/$releasever/PowerTools/$basearch/os/
gpgcheck=1
enabled=0
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official


[AppStream]
name=CentOS-$releasever - AppStream - mirrors.aliyun.com
#failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos/$releasever/AppStream/$basearch/os/
        http://mirrors.aliyuncs.com/centos/$releasever/AppStream/$basearch/os/
        http://mirrors.cloud.aliyuncs.com/centos/$releasever/AppStream/$basearch/os/
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official

        2.2、直接在服务器上直接wget下载repo配置文件至/etc/yum.repos.d/目录下

wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo

3、清除yum缓存

[root@server130 yum.repos.d]# yum clean all
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

18 files removed

4、缓存包信息

[root@server130 yum.repos.d]# yum makecache
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

CentOS-8 - Base - mirrors.aliyun.com               3.2 MB/s | 4.6 MB     00:01    
CentOS-8 - Extras - mirrors.aliyun.com              22 kB/s |  10 kB     00:00    
CentOS-8 - AppStream - mirrors.aliyun.com          3.4 MB/s | 8.4 MB     00:02    
Metadata cache created.

5、查看配置的yum仓库文章来源地址https://www.toymoban.com/news/detail-802518.html

[root@server130 yum.repos.d]# yum repolist all
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

repo id              repo name                                             status
AppStream            CentOS-8 - AppStream - mirrors.aliyun.com             enabled
PowerTools           CentOS-8 - PowerTools - mirrors.aliyun.com            disabled
base                 CentOS-8 - Base - mirrors.aliyun.com                  enabled
centosplus           CentOS-8 - Plus - mirrors.aliyun.com                  disabled
extras               CentOS-8 - Extras - mirrors.aliyun.com                enabled

到了这里,关于redhat linux 8 安装 阿里云centos-8 yum源(网络yum源配置)的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • CentOS Stream 9配置阿里yum源

    备份原有yum源 修改阿里源配置 (1)centos.repo (2)centos-addons.repo 更新缓存 yum makecache yum update

    2024年02月16日
    浏览(26)
  • CentOS配置阿里云yum源和阿里云epel源

    前言: 阿里云地址 一、 备份 二、 配置阿里云yum源 三、 配置阿里云epel源 四、测试

    2024年01月23日
    浏览(36)
  • Centos配置阿里云yum源及epel源

    1.yum介绍 (1)全称“Yellow dog Updater, Modified”,是一个专门为了解决包的依赖关系而存在的软件包管理器。就好像 Windows 系统上可以通过 360 软件管家实现软件的一键安装、升级和卸载,Linux 系统也提供有这样的工具,就是 yum; (2)当然除了这种可自动安装软件包(自动解决

    2024年01月16日
    浏览(36)
  • CentOS7配置阿里yum源 超详细!!!

    所有操作都是在root权限下做的,切换root用户 命令: su root 使用 ls /etc/yum* 查看所有的关于yum的文件的路径   命令: cd /etc/yum.repos.d 进去,以便于操作 我们需要配置的是CentOS-Base.repo和epel.repo文件 先下载wget,先备份就不能用yum安装东西了 命令: yum install wget -y 备份原来的文件

    2024年01月21日
    浏览(34)
  • Centos 8和Centos 7中配置阿里云的 yum 源

    YUM源简介 yum是一种在Linux环境下安装、更新和删除软件包的软件管理器。通过yum,用户可以轻松地从软件仓库中搜索和安装包含所需软件的软件包,并自动处理所需的依赖关系。此外,yum还可以与其他软件管理工具配合使用,例如rpm。它是许多Linux发行版中的默认软件包管理

    2024年02月13日
    浏览(28)
  • centos-stream-9 centos9 配置国内yum源 阿里云源

    源配置 tips: yum配置文件路径 /etc/yum.repos.d/centos.repo 2.Clean Cache: Press the “ESC” key and input “:wq” to save and quit vim, if you use vim. or, you can use the follow tow commands. then Waiting for the “Complete!” notice in your terminal. 6.Finished.

    2024年02月13日
    浏览(26)
  • 【VirtualBox 安装centos7 及网络配置】附 阿里云盘下载

    最近公司开展了HW 安全行动,开发测试环境不能使用,自己想在本机上安装linux虚机来玩耍一下。本文记录个人安装的经验。 使用Oracle VirtualBox 虚拟机软件,原因:开源免费。 大家可以自行到官网下载最新版本: VirtualBox官网 本人下载的是6.1.3版本:以下大家参考下载,国内

    2024年02月02日
    浏览(40)
  • RHEL 9(RedHat)阿里云镜像源安装配置Docker——【手把手图文解说】

    目录 1.安装yum工具包 2.配置阿里云Docker镜像源 3.安装Docker 4.启动Docker服务 5.设置开机自启动 6.查看Docker是否启动 7.配置阿里云镜像仓库 显示“active(running)”,Docker安装并启动成功 7.1 配置阿里云镜像仓库地址 7.2 重新加载守护进程 7.3 重启Docker服务 7.4 拉取并运行hello-world镜像

    2024年02月01日
    浏览(52)
  • Linux | 本地Yum源 | 网络Yum源(阿里云Yum源)

    💗wei_shuo的个人主页 💫wei_shuo的学习社区 🌐Hello World ! 创建挂载点目录 挂载光盘 查看挂载记录 更改配置文件 进入本地yum源配置文件目录 CentOS-Base.repo:网络Yum源(默认生效) CentOS-Media.repo:光盘Yum源(默认不生效) 此处配置本地Yum需要使CentOS-Base.repo不生效,即更改后缀

    2024年02月03日
    浏览(29)
  • centos7更新yum安装docker-ce使用阿里源

    centos7更新yum安装docker-ce使用阿里源 centos7更新yum安装docker-ce使用阿里源240209版 Centos7的yum使用国内源阿里源163源等提高下载速度

    2024年02月20日
    浏览(42)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包