LoginSignup
58
64

More than 5 years have passed since last update.

CentOS6.5 ➡ Centos7にアップグレード

Last updated at Posted at 2015-01-20
### 念のため、chkconfig --listを取っておきましょう!
$ yum update -y
$ reboot

$ vim /etc/yum.repos.d/CentOS-Base.repo
### 下記を追加
[upg]
name=CentOS-$releasever - Upgrade Tool
baseurl=http://dev.centos.org/centos/6/upg/x86_64/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

$ yum install -y openscap pcre-devel libxml2-devel libxslt-devel m2crypto python-simplejson
$ yum install -y mod_wsgi redhat-upgrade-tool preupgrade-assistant-contents

### 一覧を確認し、対象にアップグレード
$ preupg --list
$ preupg -s CentOS6_7
Do you want to continue? y/n  ###y

$ rpm --import http://ftp.plusline.de/centos/7/os/x86_64/RPM-GPG-KEY-CentOS-7
### ⬆を行わないと、下記のように怒られる
### Downloading failed:The GPG keys listed for the "CentOS-7.0 - Base" repository are already installed but they are not correct for this package. 

$ redhat-upgrade-tool-cli --network 7.0 --instrepo http://mirror.centos.org/centos/7/os/x86_64/ --force
Continue with the upgrade [Y/N]?  ### y
58
64
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
58
64