当前位置:首页 > 系统 > CentOS7.7 升级到CentOS8

CentOS7.7 升级到CentOS8

系统4年前 (2019-12-24)

CentOS7.7 升级到CentOS8

将CentOS7.7在线升级到CentOS8.0


yum -y install epel-release
yum -y install rpmconf yum-utils

rpmconf -a    #如果出现一些提示,输入Y和回车继续
执行
package-cleanup --leaves
package-cleanup --orphans


如果没提示继续

yum -y install dnf
dnf -y remove yum yum-metadata-parser
rm -Rf /etc/yum

dnf -y upgrade
dnf install http://mirror.centos.org/centos/8/BaseOS/x86_64/os/Packages/centos-linux-repos-8-2.el8.noarch.rpm http://mirror.centos.org/centos/8/BaseOS/x86_64/os/Packages/centos-linux-release-8.4-1.2105.el8.noarch.rpm http://mirror.centos.org/centos/8/BaseOS/x86_64/os/Packages/centos-gpg-keys-8-2.el8.noarch.rpm
dnf -y upgrade https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
dnf clean all


开始升级

rpm -e `rpm -q kernel`
rpm -e --nodeps sysvinit-tools
dnf -y --releasever=8 --allowerasing --setopt=deltarpm=false distro-sync
#如果缺包就从http://mirror.centos.org/centos/8/AppStream/x86_64/os/Packages/里搜索下载安装


提示出错拆卸掉冲突软件

rpm -e --nodeps kernel-ml
rpm -e --nodeps redhat-rpm-config
wget http://mirror.centos.org/centos/8/AppStream/x86_64/os/Packages/redhat-rpm-config-116-1.el8.0.1.noarch.rpm
rpm -ivh redhat-rpm-config-116-1.el8.0.1.noarch.rpm --force --nodeps
rpm -e --nodeps bash-completion
rpm -e --nodeps pycairo
rpmconf -a


安装CentOS8组件

dnf -y install kernel-core
dnf -y groupupdate "Core" "Minimal Install"
cat /etc/redhat-release
reboot


如果dnf update错误,拆卸epel7

dnf remove epel-release
dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm -y


本站所有文章均可随意转载,转载时请保留原文链接及作者。

本文链接:https://www.vos.cn/os/376.html

相关文章

解决SecureCRT连接linux无配色

解决SecureCRT连接linux无配色

SecureCRT默认ssh连接linux是无配色的,看起来很难受左侧选中需要调整的会话名称->右键->Properties ->Session Options -> Term...

CentOS7 iSCSI配置

CentOS7 iSCSI配置

先用5块磁盘组成RAID 6,其中4盘做RAID,1盘做热备,并在组建的阵列提供iSCSI服务yum install mdadm mdadm -Cv /dev...

Redhat 6.5网卡聚合绑定

Redhat 6.5网卡聚合绑定

linux下网卡bonding配置是通过多张网卡绑定为一个逻辑网卡,实现本地网卡的冗余,带宽扩容和负载均衡,在生产场景中是一种常用的技术,常用聚合模式为0,1,60(balance-rr)轮循(RR)...

Red Hat Enterprise Linux 6.5安装和分区

Red Hat Enterprise Linux 6.5安装和分区

系统镜像名称为rhel-server-6.5-x86_64-dvd.iso安装Install or upgrade an existing system跳过安装源测试检查Next语言English键盘...

CentOS 7转换为OEL 7

CentOS 7转换为OEL 7

参考官方提供的脚本,支持将CentOS 5, 6, 7转换为使用UEK(Unbreakable Enterprise Kernel)的Oracle Enterprise Linux转换系统curl&n...

EVE-NG配置静态固定地址

EVE-NG配置静态固定地址

sudo vi /etc/network/interfaces# The primary network interfaceiface eth0 inet manual ...