RHEL8安装epel源
RHEL8安装epel源
- RedHat8服务器安装的基本配置
- 配置主机名
- 关闭防火墙
- 关闭SELinux
- 配置yum仓库
- RHEL8配置BaseOS源
- RHEL8安装epel源
- 安装epel-release包
- 备份原有的elep.repo文件
- 手动创建epel.repo文件--`仅适用于RHEL8`
- 刷新源
- 从epel源安装软件
- RHEL8使用Centos源更新软件包---更新软件包但不更新内核
RedHat8服务器安装的基本配置
参考地址: https://developer.aliyun.com/mirror/centos
epel参考地址: https://developer.aliyun.com/mirror/epel
配置扩展源参考: https://blog.csdn.net/omaidb/article/details/120393850
配置主机名
# 显示默认主机名
hostname# 永久修改主机名
hostnamectl set-hostname 主机名
关闭防火墙
# 显示当前防火墙状态
firewall-cmd --state# 关闭防火墙服务
systemctl stop firewalld.service# 关闭防火墙开机自启服务
systemctl disable --now firewalld.service
关闭SELinux
# 查看SELinux启动状态
sestatus# 临时关闭SELinux
setenforce 0# 永久关闭SELinux
# 修改SELinux的配置为disabled
vi /etc/selinux/config
## 将SELINUX=enforcing改为SELINUX=disabled# 关闭SELinux
setenforce 0# 查看当前运行模式
getenforce
配置yum仓库
RHEL8配置BaseOS源
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo
# 如果没有wget, 则使用curl下载
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo
RHEL8安装epel源
安装epel-release包
# 安装epel官方源
yum install epel-release -y
yum -y install https://mirrors.aliyun.com/epel/epel-release-latest-8.noarch.rpm
备份原有的elep.repo文件
# 新建yumbak目录
mkdir -p /etc/yum.repos.d/yumbak# 将所有的epel*开头的repo文件移动到yumbak目录
mv epel* yumbak
手动创建epel.repo文件–仅适用于RHEL8
在/etc/yum.repos.d/
目录下新建epel.repo
,将下列内容粘贴到epel.repo
文件中
# 中科大的epel源---建议
[epel-USTC]
name=epel-USTC--CentOS-$releasever
baseurl=https://mirrors.ustc.edu.cn/epel/$releasever/Everything/$basearch/
enabled=1
gpgcheck=0# 华为云的epel源
[epel-huaweicloud]
name=epel-huaweicloud-CentOS-$releasever
baseurl=https://mirrors.huaweicloud.com/epel/$releasever/Everything/$basearch/
gpgcheck=0# 清华的epel源
[epel-tsinghua]
name=Extra Packages-tsinghua for Enterprise Linux $releasever - $basearch
baseurl=https://mirrors.tuna.tsinghua.edu.cn/epel/$releasever/Everything/$basearch
#metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-$releasever&arch=$basearch&infra=$infra&content=$contentdir
enabled=1
gpgcheck=1
countme=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8
刷新源
# 快速生成缓存
sudo yum makecache fast# 生成完整缓存
sudo yum clean all && sudo yum makecache
从epel源安装软件
epel
源中有许多高质量的扩展软件,例如: htop
,ncdu
,nginx
,vnstat
# 安装htop
yum install htop -y
RHEL8使用Centos源更新软件包—更新软件包但不更新内核
# 若更新 yum 源不更新内核,在 yum 的命令后面加上如下的参数
yum --exclude=kernel* update
RHEL8安装epel源相关推荐
- CentOS如何下载安装EPEL源
今天给大家介绍下CentOS下载安装EPEL源的步骤!希望大家喜欢! EPEL 是什么? EPEL (Extra Packages for Enterprise Linux,企业版Linux的额外软件 ...
- 如何在CentOS 5/6上安装EPEL源
如何在CentOS 5/6上安装EPEL源 2013-12-04 14:45 译者:NearTan Linux中国 字号:T | T 我们可以很容易地通过yum命令从EPEL源上获取上万个在CentO ...
- 安装epel源 失败:未知的名称或服务。 wget: 无法解析主机地址 “mirrors.aliyun.com”
安装epel源 失败:未知的名称或服务. wget: 无法解析主机地址 "mirrors.aliyun.com" 今天yum search mysql发现没有想要的mysql,于是 ...
- CentOS安装EPEL源
EPEL (Extra Packages for Enterprise Linux)是基于Fedora的一个项目,为"红帽系"的操作系统提供额外的软件包,适用于RHEL.CentO ...
- Linux系统之Centos安装epel源
Linux系统之Centos安装epel源 一.检查本地系统环境 1.检查系统版本 2.检查系统内核版本 二.检查yum仓库 1.查看repo文件 2.检查yum仓库的状态 三.安装epel源 1.查 ...
- linux下安装epel源
linux安装epel仓库 方法一:命令安装 方法二:源码包安装 方法一:命令安装 [root@localhost ~]# yum -y install epel-release 方法二:源码包安装 ...
- AnolisOS 8 安装 epel源
AnolisOS 8 安装 epel源 阿里云epel8源配置 1)安装epel配置包 dnf install -y https://mirrors.aliyun.com/epel/epel-rele ...
- CentOS7安装EPEL源
CentOS7安装EPEL [lijiayun@centos-*** ~]$ yum install epel-release 已加载插件:fastestmirror, langpacks 您需要 r ...
- 如何在centos上安装epel源
一.EPEL是什么? EPEL (Extra Packages for Enterprise Linux,企业版Linux的额外软件包) 是Fedora小组维护的一个软件仓库项目,为RHEL/Cent ...
最新文章
- ios10申请权限以及弹出允许使用数据框
- 第一章 python学习,个人对计算机硬件的一些理解
- tableau实战系列(九)-用 ZN 函数处理数据缺失点
- java农耕者_蒯通——大才也,《史记》却为何没有他的列传
- Apache Hudi x Pulsar Meetup杭州站火爆来袭,实践干货就等你来!
- AsyncTask的用法
- 使用Flow快速开发Teams小应用
- C# WPF MVVM开发框架Caliburn.Micro快速搭建③
- 在linux中添加字典,为 Ubuntu 的 Vim 添加英文字典
- python logging模块详解_python logging模块使用总结
- java视频通话_Java使用WebSocket和WebRTC视频通话
- 我心中的微信小程序 韩俊强的博客
- Irrlicht引擎源码剖析——第十三天
- 使用 Golang 实现简易的令牌桶算法
- Python-sympy计算问题入门-求极限
- python树莓派_树莓派python
- 3D检测入门知识梳理
- 声律启蒙--喜欢这个韵律
- 神经网络与PyTorch:线性回归
- Vue 组件化通信 provide inject ,dispatch ,boardcast