g1lg4m3sh / centos6-to7

You can actually upgrade your CentOS 6 to 7 without breaking it ;-)
3 stars 1 forks source link

Unable to find pkgconfig(libxml-2.0) and pkgconfig(libxslt) dependencies for preupgrade-assistant on CentOS 6 #1

Open espositot opened 3 years ago

espositot commented 3 years ago

Hello and good day,

Thanks for this GitHub page. This page provided very useful information. Can you elaborate on how you resolved the dependencies for the preupgrade-assistant?
I was able to resolve the openscap(x86-64) and pkgconfig(libpcre) dependency. But I have been unable to find pkgconfig(libxml-2.0) and pkgconfig(libxslt) for CentOS 6.

Here is the section in your page that I am referring to ( you actually used rpm -Uvh *.rpm ) :

[root@localhost upgrade]# rpm -Uvh preupgrade-assistant-1.0.2-33.0.3.el6.centos.x86_64.rpm error: Failed dependencies: openscap(x86-64) >= 0:0.9.3-1 is needed by preupgrade-assistant-1.0.2-33.0.3.el6.centos.x86_64 pkgconfig(libpcre) is needed by preupgrade-assistant-1.0.2-33.0.3.el6.centos.x86_64 pkgconfig(libxml-2.0) is needed by preupgrade-assistant-1.0.2-33.0.3.el6.centos.x86_64 pkgconfig(libxslt) is needed by preupgrade-assistant-1.0.2-33.0.3.el6.centos.x86_64

Also, what base URLs for your repos are you using? Mine are as follows:

[centos6] name=centos6 baseurl=https://buildlogs.centos.org/centos/6/upg/x86_64/ enabled=1 gpgcheck=0

[centos7] name=centos7 baseurl=http://vault.centos.org/7.0.1406/os/x86_64/ enabled=1 gpgcheck=0

NOTE: http://mirror.centos.org/centos/7/os/x86_64/ does not appear to be reliable any longer. Thank you!

wwalker commented 3 years ago

for me, this worked to get the tools installed:

mkdir tmp_rpms
cd tmp_rpms
wget --no-check-certificate http://buildlogs.centos.org/centos/6/upg/x86_64/Packages/preupgrade-assistant-1.0.2-33.0.3.el6.centos.x86_64.rpm http://buildlogs.centos.org/centos/6/upg/x86_64/Packages/preupgrade-assistant-contents-0.5.13-1.0.5.el6.centos.noarch.rpm http://buildlogs.centos.org/centos/6/upg/x86_64/Packages/preupgrade-assistant-ui-1.0.2-33.0.3.el6.centos.x86_64.rpm http://buildlogs.centos.org/centos/6/upg/x86_64/Packages/redhat-upgrade-tool-0.7.22-3.el6.centos.noarch.rpm

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

yum install *.rpm