CentOS 升级系统

CentOS

CentOS 6.10 升级到 CentOS 7

添加源

1
2
3
4
5
6
7
cat <<EOF > /etc/yum.repos.d/upgrade.repo
[upgrade]
name=upgrade
baseurl=http://buildlogs.centos.org/centos/6/upg/x86_64/
enabled=1
gpgcheck=0
EOF

安装工具

1
yum install -y redhat-upgrade-tool preupgrade-assistant preupgrade-assistant-contents
1
yum remove -y openscap && yum install -y http://buildlogs.centos.org/centos/6/upg/x86_64/Packages/openscap-1.0.8-1.0.1.el6.centos.x86_64.rpm

检查系统

1
2
3
preupg -l

preupg CentOS6_7

导入 Key

1
rpm --import https://mirrors.tuna.tsinghua.edu.cn/centos-vault/7.2.1511/os/x86_64/RPM-GPG-KEY-CentOS-7

rpm -q gpg-pubkey

rpm -e –allmatches gpg-pubkey-16ca1a56-4a100959

网络升级

1
centos-upgrade-tool-cli --network 7 --instrepo=https://mirrors.tuna.tsinghua.edu.cn/centos-vault/7.2.1511/os/x86_64/

iso 文件方式升级

1
wget https://mirrors.tuna.tsinghua.edu.cn/centos-vault/7.2.1511/isos/x86_64/CentOS-7-x86_64-DVD-1511.iso
1
centos-upgrade-tool-cli --iso=CentOS-7-x86_64-DVD-1511.iso --cleanup-post

参考

CentOS 6升级到CentOS 7 - 掘金

How to upgrade CentOS 6 to CentOS 7 - Knowledgebase - Owned-Networks

CentOS 6升级至Centos7 - larry-peng - 博客园

×

纯属好玩

扫码支持
扫码打赏,你说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

文章目录
  1. 1. CentOS
    1. 1.1. 参考
,