centos /scientific 5.x upgrade to 6.x

refer http://serverfault.com/questions ... on-from-centos5-box

below for the step
1,yum install --nogpgcheck redhat-rpm-config elfutils-devel elfutils-libelf-devel readline-devel zlib-devel nss-devel gettext-devel libselinux-devel ncurses-devel bzip2-devel python-devel lua-devel xz-devel xz lua-devel

2,download rpm4.6 and rebuild
rpmbuild --rebuild rpm-4.6.0-4.0.notting.1.el5.src.rpm

3,install rpm 4.6
cd /usr/src/redhat/RPMS/x86_64/

rpm -U --nodeps --force  rpm-4.6.0-4.0.notting.1.x86_64.rpm rpm-libs-4.6.0-4.0.notting.1.x86_64.rpm rpm-python-4.6.0-4.0.notting.1.x86_64.rpm rpm-build-4.6.0-4.0.notting.1.x86_64.rpm rpm-devel-4.6.0-4.0.notting.1.x86_64.rpm

4,
yum -y install yumex
yum install --nogpgcheck python-hashlib
rpm -e --nodeps sl-release-58-4.sl.noarch
rpm -i --force ftp://ftp.cuhk.edu.hk/pub/Linux/ ... -6.2-1.1.x86_64.rpm

5,sl.repo
[sl]
name=Scientific Linux $releasever - $basearch
baseurl=http://ftp.scientificlinux.org/linux/scientific/$releasever/$basearch/os/
                http://ftp1.scientificlinux.org/linux/scientific/$releasever/$basearch/os/
                http://ftp2.scientificlinux.org/linux/scientific/$releasever/$basearch/os/
                ftp://ftp.scientificlinux.org/linux/scientific/$releasever/$basearch/os/
#mirrorlist=http://ftp.scientificlinux.org/linux/scientific/mirrorlist/sl-base-6.txt
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl6 file:///etc/pki/rpm-gpg/RPM-GPG-KEY-cern

[sl-security]
name=Scientific Linux $releasever - $basearch - security updates
baseurl=http://ftp.scientificlinux.org/linux/scientific/$releasever/$basearch/updates/security/
                http://ftp1.scientificlinux.org/linux/scientific/$releasever/$basearch/updates/security/
                http://ftp2.scientificlinux.org/linux/scientific/$releasever/$basearch/updates/security/
                ftp://ftp.scientificlinux.org/linux/scientific/$releasever/$basearch/updates/security/
#mirrorlist=http://ftp.scientificlinux.org/linux/scientific/mirrorlist/sl-security-6.txt
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl6 file:///etc/pki/rpm-gpg/RPM-GPG-KEY-cern


[sl-source]
name=Scientific Linux $releasever - Source
baseurl=http://ftp.scientificlinux.org/linux/scientific/$releasever/SRPMS/
                http://ftp1.scientificlinux.org/linux/scientific/$releasever/SRPMS/
                http://ftp2.scientificlinux.org/linux/scientific/$releasever/SRPMS/
                ftp://ftp.scientificlinux.org/linux/scientific/$releasever/SRPMS/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl6 file:///etc/pki/rpm-gpg/RPM-GPG-KEY-cern

6,yum groupinstall --nogpgcheck core

if found some miss dependencies remove it

rpm -e --nodeps --allmatches cyrus-sasl-lib cyrus-sasl-plain-2.1.22-5.el5_4.3.x86_64 cyrus-sasl-plain-2.1.22-5.el5_4.3.i386 php-ldap-5.1.6-34.el5_8.x86_64 openldap-2.3.43-25.el5.x86_64 squid cyrus-sasl-devel-2.1.22-5.el5_4.3.x86_64 ricci-0.12.2-51.el5.centos.x86_64

TOP

本帖最後由 sp4148 於 2012-5-17 00:20 編輯

remove just db only for core package

rpm --allmatches --justdb -e --justdb --nodeps alchemist mod_python perl-Archive-Tar expect ipsec-tools kudzu alchemist gnbd  mod_python cadaver rhpl elfutils-devel-static yumex python-numeric

rpm --allmatches --justdb -e --justdb --nodeps nss_ldap kernel-2.6.18-164.el5.x86_64 mkinitrd-5.1.19.6-75.el5.x86_64 mkinitrd-5.1.19.6-75.el5.i386

TOP

still has many error :

Transaction Check Error:
  file /usr/share/libtool/libltdl/COPYING.LIB from install of libtool-ltdl-devel-2.2.6-15.5.el6.x86_64 conflicts with file from package libtool-1.5.22-7.el5_4.x86_64
  file /usr/share/libtool/libltdl/Makefile.am from install of libtool-ltdl-devel-2.2.6-15.5.el6.x86_64 conflicts with file from package libtool-1.5.22-7.el5_4.x86_64
  file /usr/share/libtool/libltdl/Makefile.in from install of libtool-ltdl-devel-2.2.6-15.5.el6.x86_64 conflicts with file from package libtool-1.5.22-7.el5_4.x86_64
  file /usr/share/libtool/libltdl/README from install of libtool-ltdl-devel-2.2.6-15.5.el6.x86_64 conflicts with file from package libtool-1.5.22-7.el5_4.x86_64
  file /usr/share/libtool/libltdl/aclocal.m4 from install of libtool-ltdl-devel-2.2.6-15.5.el6.x86_64 conflicts with file from package libtool-1.5.22-7.el5_4.x86_64
  file /usr/share/libtool/libltdl/config-h.in from install of libtool-ltdl-devel-2.2.6-15.5.el6.x86_64 conflicts with file from package libtool-1.5.22-7.el5_4.x86_64
  file /usr/share/libtool/libltdl/configure from install of libtool-ltdl-devel-2.2.6-15.5.el6.x86_64 conflicts with file from package libtool-1.5.22-7.el5_4.x86_64
  file /usr/share/libtool/libltdl/configure.ac from install of libtool-ltdl-devel-2.2.6-15.5.el6.x86_64 conflicts with file from package libtool-1.5.22-7.el5_4.x86_64
  file /usr/share/libtool/libltdl/ltdl.c from install of libtool-ltdl-devel-2.2.6-15.5.el6.x86_64 conflicts with file from package libtool-1.5.22-7.el5_4.x86_64
  file /usr/share/libtool/libltdl/ltdl.h from install of libtool-ltdl-devel-2.2.6-15.5.el6.x86_64 conflicts with file from package libtool-1.5.22-7.el5_4.x86_64
  file /usr/lib64/libfreebl3.so from install of nss-softokn-freebl-3.12.9-11.el6.x86_64 conflicts with file from package nss-3.13.1-5.el5_8.x86_64
  file /etc/yum.conf from install of yum-3.2.29-22.el6.noarch conflicts with file from package yum-conf-5:58-1.sl.noarch
  file /etc/pm/sleep.d from install of filesystem-2.4.30-3.el6.x86_64 conflicts with file from package pm-utils-0.99.3-10.el5.centos.x86_64

Error Summary

run remove again the conficts package:
rpm --justdb -e --nodeps  libtool-1.5.22-7.el5_4.x86_64 setools-3.0-3.el5.x86_64 nss-3.13.1-5.el5_8.x86_64 yum-conf-58-1.sl.noarch

then:
yum groupinstall --skip-broken --nogpgcheck core -y

TOP