Centos7安装ELRepo源

2023-05-16

Centos7安装ELRepo源

    • 安装ELRepo源
      • Centos7安装ELRepo源
        • 快速添加ELRepo源(国内)
        • elrepo.repo配置内容如下
      • 测试安装包
    • rhel8安装epelrepo源
      • 替换为国内源
      • 刷新缓存
      • 安装4.4以上版本内核

安装ELRepo源

用来更新内核,Centos7的内核默认只到3.10,这个源可以更新到最新的内核.例如5.4

参考: https://elrepo.org/tiki/HomePage


Centos7安装ELRepo源

# yum仓库中安装ELRepo源
yum install elrepo-release -y

# 从ELRepo官网安装epelrepo源
rpm -Uvh https://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm

# 导入gpg key
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org

快速添加ELRepo源(国内)

# 安装yum-config-manager
yum install -y yum-utils

# 添加elrepo/elrepo源
yum-config-manager --add-repo=https://mirrors.tuna.tsinghua.edu.cn/elrepo/elrepo/el7/x86_64/

# 添加elrepo/kernel源
yum-config-manager --add-repo=https://mirrors.tuna.tsinghua.edu.cn/elrepo/kernel/el7/x86_64/

# 添加elrepo/extras/源
https://mirrors.tuna.tsinghua.edu.cn/elrepo/extras/el7/x86_64/

# 查看添加的项目
yum repolist

elrepo.repo配置内容如下

适用于Centos7.

[elrepo-elrepo]
name=added from: https://mirrors.tuna.tsinghua.edu.cn/elrepo/elrepo/el7/x86_64/
baseurl=https://mirrors.tuna.tsinghua.edu.cn/elrepo/elrepo/el7/x86_64/
enabled=1
gpgcheck=0

[elrepo-extras]
name=added from: https://mirrors.tuna.tsinghua.edu.cn/elrepo/extras/el7/x86_64/
baseurl=https://mirrors.tuna.tsinghua.edu.cn/elrepo/extras/el7/x86_64/
enabled=1
gpgcheck=0

[elrepo-kernel]
name=added from: https://mirrors.tuna.tsinghua.edu.cn/elrepo/kernel/el7/x86_64/
baseurl=https://mirrors.tuna.tsinghua.edu.cn/elrepo/kernel/el7/x86_64/
enabled=1
gpgcheck=0

测试安装包

# bash-completion-extras需要依赖elrepo-extras源
yum install -y bash-completion-extras

rhel8安装epelrepo源

# rhel8安装epelrepo源
rpm -Uvh https://www.elrepo.org/elrepo-release-8.el8.elrepo.noarch.rpm

# 导入gpg key
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org

替换为国内源

参考: https://mirrors.tuna.tsinghua.edu.cn/help/elrepo/
替换为ELRepo清华源 https://notion.ccm.ink/centos-core

# 替换为清华源
cd /etc/yum.repos.d

# 备份
cp elrepo.repo elrepo.repo.bak

# 将elrepo.org/linux替换为mirrors.tuna.tsinghua.edu.cn/elrepo
# 替换为清华 ELRepo 源
$ sed -e "s|mirrorlist=|#mirrorlist=|g" \
      -e "s|elrepo.org/linux|mirrors.tuna.tsinghua.edu.cn/elrepo|g"\
      -i.bak \
      /etc/yum.repos.d/elrepo.repo
## 安装完成后检查 /boot/grub2/grub.cfg 中对应内核 menuetry 中是否包含 initrd16 配置,如果没有,再安装一次

刷新缓存

# 刷新缓存
yum repolist && yum clean all && yum makecache

安装4.4以上版本内核

https://blog.csdn.net/omaidb/article/details/121856924

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Centos7安装ELRepo源 的相关文章

随机推荐

  • Oracle grant all privileges to user

    测试流程 xff1a 解锁HR用户 SQL gt alter user hr account unlock identified by hr User altered 创建一个test用户 SYS 64 orcl11g gt CREATE
  • 《自己动手写Docker》书摘之一: Linux Namespace

    Linux Namespace 介绍 我们经常听到说Docker 是一个使用了Linux Namespace 和 Cgroups 的虚拟化工具 xff0c 但是什么是Linux Namespace 它在Docker内是怎么被使用的 xff0
  • YYText

    特性 API 兼容 UILabel 和 UITextView支持高性能的异步排版和渲染扩展了 CoreText 的属性以支持更多文字效果支持 UIImage UIView CALayer 作为图文混排元素支持添加自定义样式的 可点击的文本高
  • 场景设计:用OOP的思想设计一个生产者消费者的模型

    具体模型如下 xff1a 有若干个消费者 xff0c 每个消费者都可以独立的执行消费任务 xff0c 偶尔会因为某种原因 xff0c 该消费者会不可用 xff0c 这个时候不能在给他分配消费任务了 此外还有大量待消费的生产品 xff0c 每
  • Ubuntu卡死在登录界面进不去的处理方法

    原因是显卡驱动坏了 xff0c 基本上本人的16 04版本动不动就坏一次 xff0c 已经习惯了 xff0c 18 04好像好不少 xff0c 也不知道是不是兼容问题 操作很简单 xff0c 就是卸载掉原来的驱动然后重装就OK了 1 在登录
  • 产品化的理解

    我对产品化的理解 产品化的时机是看业务的需要 xff0c 不管是对前景的落实 xff0c 还是项目转化成产品 xff0c 这些都不是技术人员能考虑的 xff0c 业务的发展和策划 xff0c 如何进行市场细化等如果都由技术人员考虑 xff0
  • 生产消费设计模式

    生产消费模式 在实际的软件开发过程中 xff0c 经常会碰到如下场景 xff1a 某个模块负责产生数据 xff0c 这些数据由另一个模块来负责处理 xff08 此处的模块是广义的 xff0c 可以是类 函数 线程 进程等 xff09 产生数
  • JS对象转insert语句

    function obj2Sql tablename obj var sqls 61 34 34 f 61 34 34 v 61 34 34 obj forEach o 61 gt f 61 34 34 v 61 34 34 for let
  • HTML5小试 双人贪吃蛇

    lt html gt lt head gt lt head gt lt body gt lt div style 61 34 float left 34 gt 当前速度1 xff1a lt button nclick 61 34 jianc
  • 九个Console命令,让js调试更简单

    九个Console命令 xff0c 让js调试更简单 一 显示信息的命令 lt DOCTYPE html gt lt html gt lt head gt lt title gt 常用console命令 lt title gt lt met
  • echarts自定义功能按钮图片 网络路径格式

    toolbox show true orient 39 vertical 39 x 39 left 39 top 39 20 39 feature myTool show true title 39 自定义扩展方法 39 icon 39 i
  • JAVA开发之基础业务环境

    1 用户登录 1 1 单点登录业务实现 单点登录 SingleSignOn xff0c SSO xff0c 就是通过用户的一次性鉴别登录 当用户在身份认证服务器上登录一次以后 xff0c 即可获得访问单点登录系统中其他关联系统和应用软件的权
  • 设置域用户密码复杂度

    需求 xff1a 设置域用户密码复杂度 环境 xff1a Windows Server 2016 DataCenter 创建组策略 xff0c 编辑 xff1a 路径 xff1a 计算机配置 Windows设置 安全设置 账户策略 密码策略
  • windows服务器设置开机启动的几种方式

    windows服务器设置开机启动的几种方式 xff1a 一 启动文件夹 将系统下可以直接双击就可以启动的可执行文件 xff0c 创建快捷方式放在此文件夹中 文件夹寻找方式 xff1a win 43 r 打开运行窗口 xff0c 输入shel
  • IDEA安装卸载插件

    介绍两种不常见的安装和卸载idea插件的方式 xff0c 具体步骤如下 xff1a 安装idea插件 通过命令行安装 1 查看Plugin ID 在https plugins jetbrains com 中搜索想要安装的插件 xff0c 如
  • Linux下的/etc/pam.d/system-auth配置文件参数说明

    文章目录 一 配置文件内容二 各列参数说明1 xff09 第一列2 xff09 第二列3 xff09 第三列和第四列 三 常用类说明 一 配置文件内容 首先打开配置文件 etc pam d system auth xff0c 我们会发现这个
  • 在Debian上安装gnome和kde

    sudo tasksel 空格键选定gnome和kde tab键跳到确定上 xff0c 回车确定后安装
  • 安装Kali手记

    其实我不是黑客 xff0c 不太会用kali xff0c 只把它当成一个普通的linux用 xff0c 因为它是滚动升级 xff0c 不用经常进行版本升级 我的电脑是win10的 xff0c uefi和gpt xff0c 不用多说 kail
  • systemctl系统服务管理

    systemctl系统服务管理 systemctl简介systemctl的管理单位 unit更新systemd service服务文件基本格式自定义service文件systemctl定时重启service文件中的type systemct
  • Centos7安装ELRepo源

    Centos7安装ELRepo源 安装ELRepo源Centos7安装ELRepo源快速添加ELRepo源 国内 elrepo repo配置内容如下 测试安装包 rhel8安装epelrepo源替换为国内源刷新缓存安装4 4以上版本内核 安