I may have found the solution already, but
Is there some easier way of doing the same?
Is there any way to tell yum to automatically ignore or prefer files coming from x86_64 rpm packages over i386 packages, if both should be installed but both have same == conflicting files?
Also in the future, the system is unable unattentively update even critical packages, because there will be conflicts.
The story
Upgrading from Fedora core 6 to fc9.
Lots of conflicts when doing the "yum update" after the upgrade with the "Fedora 9 X86_64"-install-DVD has been done.
The problem comes from the fact there is both x86_64 and i386 rpm-packages installed on the system and some package, say somepackage-2.x86_64.rpm and somepackage-2.i386.rpm both have same files in them, like configuration files, man pages and so on.
Googled around, checked yum FAQ and yum bugzilla, but the solutions all need lots of handwork. :-(
Would have filed a bug in yum bugzilla, but they have made it difficult.
What helps abit, is to have
Code:
%_query_all_fmt %%{name}-%%{version}-%%{release}.%%{arch}
...in /etc/rpm/macros so when trying to find which rpm files conflic, rpm and yum programs will tell the architecture with the package name. (i385/x86_64)
So instead of telling:
Quote:
86 conflicts with file from package pam-1.0.1-2.fc9
file /usr/share/man/man8/pam_selinux.8.gz from install of pam-1.0.1-4.fc9 conflicts with file from package pam-1.0.1-2.fc9
|
....it will tell:
Quote:
86 conflicts with file from package pam-1.0.1-2.fc9.x86_64
file /usr/share/man/man8/pam_selinux.8.gz from install of pam-1.0.1-4.fc9.i386 conflicts with file from package pam-1.0.1-2.fc9.x86_64
|
First I tried to "yum remove" the conflicting i386-packages, but it would had needed lots of handwork and besides, I will need also those i386-libraries because some programs are not compiled or even compatible with x86_64; say Firefox (i.e. Flash-plugin, java-plugin), matlab student version, and some other programs.
So what I did, was manually install the rpm packages yum had retrieved from the yum repositories:
Quote:
# cd /var/cache/yum/updates-newkey/packages/
# rpm -Uvh --force *.rpm
.....(and the same thing for other package-directories under /var/cache/yum/ )
|
Or if one is brave enough (and is sure what is doing):
Quote:
# yum clean packages
# yum -y update # will fail with many errors
# find /var/cache/yum/ -type f -name *.rpm | xargs rpm -Uvh --force
|
The error log and some of the conflicts which I got when doing yum update:
Quote:
# yum -y update
Loaded plugins: refresh-packagekit
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package qt-x11.x86_64 1:4.4.1-2.fc9 set to be updated
---> Package perl-libwww-perl.noarch 0:5.814-3.fc9 set to be updated
---> Package system-config-network.noarch 0:1.5.10-1.fc9 set to be updated
---> Package authconfig.x86_64 0:5.4.4-1.fc9 set to be updated
---> Package nscd.x86_64 0:2.8-8 set to be updated
.......(had to be clipped so it is not too long for linuxquestions.org)
---> Package gnome-games.x86_64 1:2.22.3-1.fc9 set to be updated
---> Package udev.x86_64 0:124-2.fc9 set to be updated
--> Running transaction check
---> Package ntp.x86_64 0:4.2.4p4-7.fc9 set to be updated
---> Package NetworkManager.x86_64 1:0.7.0-0.11.svn4022.4.fc9 set to be updated
---> Package html2ps.noarch 0:1.0-0.1.b5.fc9 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
NetworkManager-glib x86_64 1:0.7.0-0.11.svn4022.4.fc9 updates-newkey 148 k
replacing NetworkManager.i386 1:0.7.0-0.9.3.svn3623.fc9
kdelibs3 x86_64 3.5.10-1.fc9 updates-newkey 18 M
replacing crystalsvg-icon-theme.x86_64 4.0.3-3.fc9
kernel x86_64 2.6.26.5-45.fc9 updates-newkey 19 M
ntp-perl x86_64 4.2.4p4-7.fc9 updates-newkey 21 k
replacing ntp.x86_64 4.2.4p4-6.fc9
system-config-firewall noarch 1.2.10-1.fc9 updates-newkey 508 k
replacing system-config-securitylevel.x86_64 1.6.27-3
xorg-x11-drv-synaptics x86_64 0.15.0-3.fc9 updates-newkey 50 k
replacing synaptics.x86_64 0.14.6-7.fc9
Updating:
MySQL-python x86_64 1.2.2-7.fc9 updates-newkey 97 k
NetworkManager x86_64 1:0.7.0-0.11.svn4022.4.fc9 updates-newkey 818 k
NetworkManager-glib i386 1:0.7.0-0.11.svn4022.4.fc9 updates-newkey 146 k
NetworkManager-gnome x86_64 1:0.7.0-0.11.svn4022.4.fc9 updates-newkey 338 k
PolicyKit x86_64 0.8-3.fc9 updates-newkey 166 k
PyOpenGL noarch 3.0.0-0.8.b6.fc9 updates-newkey 1.3 M
a2ps x86_64 4.14-5.fc9 updates-newkey 1.3 M
alsa-lib i386 1.0.17-2.fc9 updates-newkey 411 k
alsa-lib-devel x86_64 1.0.17-2.fc9 updates-newkey 994 k
alsa-utils x86_64 1.0.17-2.fc9 updates-newkey 1.0 M
anacron x86_64 2.3-61.fc9 updates-newkey 40 k
arts x86_64 8:1.5.10-1.fc9 updates-newkey 1.2 M
at x86_64 3.1.10-24.fc9 updates-newkey 61 k
audit-libs-python x86_64 1.7.5-1.fc9 updates-newkey 77 k
authconfig x86_64 5.4.4-1.fc9 updates-newkey 470 k
authconfig-gtk x86_64 5.4.4-1.fc9 updates-newkey 48 k
autofs x86_64 1:5.0.3-15 updates-newkey 953 k
banshee x86_64 1.2.1-2.fc9 updates-newkey 2.8 M
bind x86_64 32:9.5.0-35.P2.fc9 updates-newkey 1.6 M
bind-utils x86_64 32:9.5.0-35.P2.fc9 updates-newkey 198 k
bluez-gnome x86_64 0.26-1.fc9 updates-newkey 228 k
bluez-utils x86_64 3.35-5.fc9 updates-newkey 492 k
control-center x86_64 1:2.22.2.1-1.fc9 updates-newkey 2.7 M
cronie x86_64 1.0-7.fc9 updates-newkey 73 k
cups x86_64 1:1.3.8-2.fc9 updates-newkey 3.6 M
curl x86_64 7.18.2-6.fc9 updates-newkey 155 k
cvs x86_64 1.11.22-14.fc9 updates-newkey 743 k
cyrus-sasl x86_64 2.1.22-15.fc9 updates-newkey 80 k
cyrus-sasl-devel x86_64 2.1.22-15.fc9 updates-newkey 352 k
dbus-glib-devel x86_64 0.74-8.fc9 updates-newkey 40 k
dbus-glib-devel i386 0.74-8.fc9 updates-newkey 40 k
dbus-python x86_64 0.83.0-2.fc9 updates-newkey 222 k
dhclient x86_64 12:4.0.0-18.fc9 updates-newkey 308 k
docbook-style-xsl noarch 1.73.2-10.fc9 updates-newkey 2.9 M
docbook-utils noarch 0.6.14-14.fc9 updates-newkey 69 k
driconf noarch 0.9.1-8.fc9 updates-newkey 157 k
eclipse-platform x86_64 1:3.3.2-12.fc9 updates-newkey 33 M
eel2 x86_64 2.22.2-1.fc9 updates-newkey 272 k
eel2-devel x86_64 2.22.2-1.fc9 updates-newkey 48 k
ekiga x86_64 2.0.12-2.fc9 updates-newkey 7.2 M
....(clipped) ....
xorg-x11-server-Xorg x86_64 1.5.0-2.fc9 updates-newkey 1.5 M
xorg-x11-xinit x86_64 1.0.9-1.fc9 updates-newkey 41 k
yum noarch 3.2.19-3.fc9 updates-newkey 833 k
yum-utils noarch 1.1.16-1.fc9 updates-newkey 67 k
Installing for dependencies:
html2ps noarch 1.0-0.1.b5.fc9 updates-newkey 92 k
Transaction Summary
=============================================================================
Install 7 Package(s)
Update 219 Package(s)
Remove 0 Package(s)
Total size: 355 M
Total download size: 283 k
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Check Error:
file /etc/alsa/alsa.conf from install of alsa-lib-1.0.17-2.fc9.i386 conflicts with file from package alsa-lib-1.0.16-3.fc9.x86_64
file /etc/alsa/cards/HDA-Intel.conf from install of alsa-lib-1.0.17-2.fc9.i386 conflicts with file from package alsa-lib-1.0.16-3.fc9.x86_64
file /etc/alsa/cards/NFORCE.conf from install of alsa-lib-1.0.17-2.fc9.i386 conflicts with file from package alsa-lib-1.0.16-3.fc9.x86_64
file /etc/alsa/cards/PC-Speaker.conf from install of alsa-lib-1.0.17-2.fc9.i386 conflicts with file from package alsa-lib-1.0.16-3.fc9.x86_64
file /usr/share/man/man5/ldap.conf.5.gz from install of openldap-2.4.10-1.fc9.i386 conflicts with file from package openldap-2.4.8-3.fc9.x86_64
file /usr/share/man/man5/ldif.5.gz from install of openldap-2.4.10-1.fc9.i386 conflicts with file from package openldap-2.4.8-3.fc9.x86_64
file /usr/share/doc/pam-1.0.1/Linux-PAM_SAG.txt from install of pam-1.0.1-4.fc9.i386 conflicts with file from package pam-1.0.1-2.fc9.x86_64
file /usr/share/doc/pam-1.0.1/html/sag-pam_namespace.html from install of pam-1.0.1-4.fc9.i386 conflicts with file from package pam-1.0.1-2.fc9.x86_64
file /usr/share/doc/pam-1.0.1/html/sag-pam_selinux.html from install of pam-1.0.1-4.fc9.i386 conflicts with file from package pam-1.0.1-2.fc9.x86_64
file /usr/share/doc/pam-1.0.1/txts/README.pam_selinux from install of pam-1.0.1-4.fc9.i386 conflicts with file from package pam-1.0.1-2.fc9.x86_64
file /usr/share/man/man5/namespace.conf.5.gz from install of pam-1.0.1-4.fc9.i386 conflicts with file from package pam-1.0.1-2.fc9.x86_64
file /usr/share/man/man8/pam_namespace.8.gz from install of pam-1.0.1-4.fc9.i386 conflicts with file from package pam-1.0.1-2.fc9.x86_64
file /usr/share/man/man8/pam_selinux.8.gz from install of pam-1.0.1-4.fc9.i386 conflicts with file from package pam-1.0.1-2.fc9.x86_64
Error Summary
-------------
|