Linux/CentOS 6

From Omnia
Jump to navigation Jump to search

NTFS

yum --enablerepo=extras install epel-release
#  rpm -ivh http://mirror.chpc.utah.edu/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
yum install ntfs-3g
yum install ntfsprogs

ref: [1] [2] [3]

Java

# For RHEL
yum -y install java-1.8.0-openjdk

Upgrade to CentOS 7

WARNING: [4]

DO NOT USE this tool. Warning: use of this tool is currently BROKEN as several system-critical
packages are of a higher version number in CentOS 6.7 than they are in CentOS 7 so those do not
get upgraded correctly. This renders yum and several other system tools non-functional.

Also: [5]

CentOS 6.6 fails now with the upgrade with error "Downloading failed: invalid data in
.treeinfo: No section: 'checksums'" so this is also broken on CentOS 6.6 now and can ONLY be
done on CentOS 6.5.


Install pre-upgrade assistant:

$ sudo yum install preupgrade-assistant preupgrade-assistant-contents

Install upgrade tool:

$ sudo yum install redhat-upgrade-tool

List upgrade options:

$ sudo preupg -l
CentOS6_7

Check upgrade:

$ sudo preupg
$ sudo preupg -s CentOS6_7

Fix issues.

Import CentOS-7 RPM key:

$ sudo rpm --import http://mirror.centos.org/centos/7/os/x86_64/RPM-GPG-KEY-CentOS-7

Do upgrade:

$ sudo /usr/bin/redhat-upgrade-tool-cli --network 7 --instrepo=http://mirror.centos.org/centos/7/os/x86_64

ref:

Upgrade Issues

I/O warning : failed to load external entity "/usr/share/openscap/xsl/security-guide.xsl"
compilation error: file /usr/share/preupgrade/xsl/preup.xsl line 40 element import
xsl:import : unable to load /usr/share/openscap/xsl/security-guide.xsl
I/O warning : failed to load external entity "/usr/share/openscap/xsl/oval-report.xsl"
compilation error: file /usr/share/preupgrade/xsl/preup.xsl line 41 element import
xsl:import : unable to load /usr/share/openscap/xsl/oval-report.xsl
I/O warning : failed to load external entity "/usr/share/openscap/xsl/sce-report.xsl"
compilation error: file /usr/share/preupgrade/xsl/preup.xsl line 42 element import
xsl:import : unable to load /usr/share/openscap/xsl/sce-report.xsl
OpenSCAP Error:: Could not parse XSLT file '/usr/share/preupgrade/xsl/preup.xsl' [oscapxml.c:416]
Unable to open file /root/preupgrade/result.html
Usage: preupg [options]

preupg: error: [Errno 2] No such file or directory: '/root/preupgrade/result.html'

https://centos.org/forums/viewtopic.php?t=59763

Erase the existing version of openscap (I had openscap 1.2) and install openscap-1.0.8-1.0.1 from http://dev.centos.org/centos/6/upg and redo the upgrade.

yum erase openscap
yum install http://dev.centos.org/centos/6/upg/x86_64/Packages/openscap-1.0.8-1.0.1.el6.centos.x86_64.rpm
yum install redhat-upgrade-tool preupgrade-assistant-contents

---

Downloading failed: invalid data in treeinfo: No option 'upgrade' in section: 'images-x86_64'

According to the CentOS Upgrade Tool web page, the tool is currently broken:

https://wiki.centos.org/TipsAndTricks/CentOSUpgradeTool

Therefore the choices are to stay with CentOS 6 (supported till 2020), or backup all your data and do a clean CentOS 7 install then restore your data.