How To Upgrade From CentOS 6 To 7 - Nam Huy Linux
How To Upgrade From CentOS 6 To 7 - Nam Huy Linux
HOME
ABOUT
ARCHIVES
Search me...
CONTACT
You can upgrade from CentOS 6.5 or 6.6 to 7, if you have older version, you should update your CentOS 6 to
the newest version which is 6.6 as of Im writing this.
# cat /etc/redhat-release
Starting from RHEL 7, Red Hat start to support for upgrading to major releases (RHEL 6.5 > RHEL 7) via
a tool called redhat-upgrade-tool.
To install upgarde tools, there are two ways to do it. Easy/quick way is to create a new repo file, or the
long/hard way is to download each package and install them. Im going to show you both ways.
The long way: the tools you need should be available to download at
http://dev.centos.org/centos/6/upg/x86_64/Packages/ The files you will need are:
preupgrade-assistant
preupgrade-assistant-contents
preupgrade-assistant-ui
redhat-upgrade-tool
To download and install those packages:
# cd /etc
# wget http://dev.centos.org/centos/6/upg/x86_64/Packages/preupgrade-assistant-1.0.233.0.3.el6.centos.x86_64.rpm http://dev.centos.org/centos/6/upg/x86_64/Packages/preupgradeassistant-contents-0.5.13-1.0.5.el6.centos.noarch.rpm
http://dev.centos.org/centos/6/upg/x86_64/Packages/preupgrade-assistant-ui-1.0.233.0.3.el6.centos.x86_64.rpm http://dev.centos.org/centos/6/upg/x86_64/Packages/redhat-upgradetool-0.7.22-3.el6.centos.noarch.rpm
# yum localinstall preupgrade-assistant-*
Another way to install preupgrade and redhat upgrade tools is to add a new repo file. So lets create a new
[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
|notapplicable |
|Dovecot configuration compatibility check
|notapplicable |
|Net-SNMP
check|notapplicable
|Squid configuration compatibility check
|notapplicable |
|Added and extended options for BIND9
configuration|notapplicable |
|Added options in DNSMASQ
configuration|notapplicable |
|w3m not available in CentOS 7
|notapplicable |
|report incompatibilities between CentOS 6 and 7 in qemu-guest-agent package
|notapplicable |
|Removed options in quota
tools|notapplicable |
|General
|notapplicable |
|samba shared directories
selinux|notapplicable |
|CUPS Browsing/BrowsePoll
configuration|notapplicable |
|CVS Package Split
|notapplicable |
|FreeRADIUS Upgrade Verification
|notapplicable |
|httpd configuration compatibility check
|notapplicable |
|bind-dyndb-ldap
|notapplicable |
|Identity Management Server compatibility
check|notapplicable |
|IPA Server CA
Verification|notapplicable
|OpenLDAP /etc/sysconfig and data
compatibility|notapplicable |
|Configuration for quota_nld service
|notapplicable |
|Disk quota netlink message daemon moved into quota-nld
package|notapplicable |
|SSSD compatibility
check|notapplicable |
|Luks encrypted
partition|notapplicable |
|Clvmd and cmirrord daemon management.
|notapplicable |
|State of LVM2 services.
|notapplicable |
|device-mapper-multipath configuration compatibility check
|notapplicable |
|Removal of
scsi-target-utils|notapplicable
|Configuration for warnquota
tool|notapplicable |
|Disk quota tool warnquota moved into quota-warnquota
package|notapplicable |
|Quorum implementation
|notapplicable |
|fix krb5kdc config file
|notapplicable |
|Ruby
2.0.0|notapplica
|SCL collections
|notapplicable |
this)
You can choose another mirror which is close to you for faster download, the full mirror list is available at
http://www.centos.org/download/mirrors/
The output after I ran the command:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
setting up repos...
.treeinfo
| 1.1 kB 00:00
Preupgrade assistant risk check found risks for this upgrade.
You can run preupg --riskcheck --verbose to view these risks.
Addressing high risk issues is required before the in-place upgrade
and ignoring these risks may result in a broken upgrade and unsupported upgrade.
Please backup your data.
List of issues:
INPLACERISK: HIGH: We detected some non-CentOS signed packages, you can find the list in /root
handle them yourself!
INPLACERISK: HIGH: Package python-cheetah(required by NonCentOS signed package(s):cloud-ini
INPLACERISK: HIGH: After upgrading to CentOS 7 there are still some el6 packages left. Add -to remove them automatically.
INPLACERISK: HIGH: The service ip6tables on CentOS 7 is disabled by default. Enable them via c
start ip6tables.service .
INPLACERISK: HIGH: The service netfs on CentOS 7 is disabled by default. Enable them via comma
netfs.service .
INPLACERISK: HIGH: The service network on CentOS 7 is disabled by default. Enable them via com
network.service .
INPLACERISK: HIGH: The service ntpd on CentOS 7 is disabled by default. Enable them via comman
ntpd.service .
INPLACERISK: HIGH: The service postfix on CentOS 7 is disabled by default. Enable them via com
postfix.service .
INPLACERISK: HIGH: The service udev-post on CentOS 7 is disabled by default. Enable them via c
start udev-post.service .
INPLACERISK: HIGH: additional libcgroup configuration files were created (/etc/cgconfig.d)
INPLACERISK: MEDIUM: We detected some packages installed on the system were removed (obsoleted
functionality of the packages depending on them.
INPLACERISK: MEDIUM: We detected some packages installed on the system were removed between Ce
of the packages depending on them.
INPLACERISK: MEDIUM: Package coreutils-libs not provided by its replacement coreutils. In-plac
by postupgrade script!
INPLACERISK: MEDIUM: having one of [audit-libs nss-util nss-sysinit nss-tools audit-libs-pyth
tzdata nss openldap ca-certificates nspr] package installed breaks upgrade
INPLACERISK: MEDIUM:We detected some soname bumps in the libraries installed on the system.
party applications. They may need rebuild. Please check their requirements.
INPLACERISK: MEDIUM:We detected some .so libraries installed on the system were removed betw
functionality of some of your 3rd party applications.
INPLACERISK: MEDIUM: The service cloud-config is not installed by CentOS signed packages and w
upgrade.
INPLACERISK: MEDIUM: The service cloud-final is not installed by CentOS signed packages and wi
upgrade.
INPLACERISK: MEDIUM: The service cloud-init is not installed by CentOS signed packages and wil
upgrade.
INPLACERISK: MEDIUM: The service cloud-init-local is not installed by CentOS signed packages
upgrade.
INPLACERISK: SLIGHT: We detected some files where modifications are not tracked in the rpms. Y
successful upgrade.
INPLACERISK: SLIGHT: We detected some files untracked by rpms. Some of these may need manual c
cause conflicts or troubles during the installation. Try to reduce unnecessary untracked files
INPLACERISK: SLIGHT: Package procps(required by NonCentOS signed package(s):cloud-init ) re
INPLACERISK: SLIGHT: We detected some packages installed on the system changed their name betw
compatible, monitoring after the update is recommended.
INPLACERISK: SLIGHT: export shell commands will be deleted from /etc/sysconfig/sshd
INPLACERISK: SLIGHT: Some scripts untracked by RPM were discovered on the system and may not w
INPLACERISK: SLIGHT: /usr/lib/python2.6/site-packages/argparse-1.2.1-py2.6.egg-info is owned
INPLACERISK: SLIGHT: /usr/lib/python2.6/site-packages/backports is owned by an RPM package th
INPLACERISK: SLIGHT: /usr/lib/python2.6/site-packages/backports.ssl_match_hostname-3.4.0.2-py
signed by CentOS.
INPLACERISK: SLIGHT: /usr/lib/python2.6/site-packages/boto is owned by an RPM package that wa
INPLACERISK: SLIGHT: /usr/lib/python2.6/site-packages/boto-2.32.1-py2.6.egg-info is owned by
INPLACERISK: SLIGHT: /usr/lib/python2.6/site-packages/chardet is owned by an RPM package that
INPLACERISK: SLIGHT: /usr/lib/python2.6/site-packages/cloud_init-0.7.4-py2.6.egg-info is own
INPLACERISK: SLIGHT: /usr/lib/python2.6/site-packages/cloudinit is owned by an RPM package th
INPLACERISK: SLIGHT: /usr/lib/python2.6/site-packages/jsonpatch-1.2-py2.6.egg-info is owned
INPLACERISK: SLIGHT: /usr/lib/python2.6/site-packages/prettytable-0.7.2-py2.6.egg-info is ow
INPLACERISK: SLIGHT: /usr/lib/python2.6/site-packages/requests is owned by an RPM package tha
INPLACERISK: SLIGHT: /usr/lib/python2.6/site-packages/six-1.7.3-py2.6.egg-info is owned by a
INPLACERISK: SLIGHT: /usr/lib/python2.6/site-packages/tests is owned by an RPM package that w
INPLACERISK: SLIGHT: /usr/lib/python2.6/site-packages/urllib3 is owned by an RPM package that
INPLACERISK: SLIGHT: /usr/lib/python2.6/site-packages/urllib3-1.5-py2.6.egg-info is owned by
INPLACERISK: SLIGHT: /usr/lib64/python2.6/site-packages/backports is owned by an RPM package
INPLACERISK: NONE: Custom selinux configuration has been saved and it will be restored by a po
Continue with the upgrade [Y/N]?
When your system is booted up, check your system if its Centos 7
# cat /etc/redhat-release
Related
What is Linux ?
06/09/2014
In "Linux"
Leave a Reply
Enter your comment here...
RECENT POSTS
How to install OpenVPN Access Server OpenVPN-AS on CentOS 6
How to upgrade from CentOS 6 to 7
Linux file system structure
Browse web in linux via terminal with w3m and xterm
How to secure Apache HTTP Web Server
Netflix supports HTML5 and ditches Silverlight
Tracking centos server with bash script
What is Linux ?
How to install nginx as frontend for apache
SPONSORED LINKS
Advertise Here
Advertise Here
Advertise Here
CATEGORIES
Android
Bash Scripting
CentOS
Debian
Fedora
Firefox
Games
Hardware
Linux
Linux Mint
MariaDB
MySQL
Networking
Advertise Here
Open Source
Security
Server
Software
Tips Tricks
Ubuntu
Wordpress
Xubuntu
ABOUT US
Huy Tran
Contribute
Copyright
Privacy Policy
Terms Of Service
SUBSCRIBE
RSS Feed
XML RSS Feed
Subscribe by Email