Centos7安装ELRepo源
- 安装ELRepo源
- Centos7安装ELRepo源
- 快速添加ELRepo源(国内)
- elrepo.repo配置内容如下
- 测试安装包
- rhel8安装epelrepo源
-
安装ELRepo源
用来更新内核,Centos7的内核默认只到3.10,这个源可以更新到最新的内核.例如5.4
参考: https://elrepo.org/tiki/HomePage
Centos7安装ELRepo源
yum install elrepo-release -y
rpm -Uvh https://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
快速添加ELRepo源(国内)
yum install -y yum-utils
yum-config-manager --add-repo=https://mirrors.tuna.tsinghua.edu.cn/elrepo/elrepo/el7/x86_64/
yum-config-manager --add-repo=https://mirrors.tuna.tsinghua.edu.cn/elrepo/kernel/el7/x86_64/
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
测试安装包
yum install -y bash-completion-extras
rhel8安装epelrepo源
rpm -Uvh https://www.elrepo.org/elrepo-release-8.el8.elrepo.noarch.rpm
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
$ 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
刷新缓存
yum repolist && yum clean all && yum makecache
安装4.4以上版本内核
https://blog.csdn.net/omaidb/article/details/121856924
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)