I was aware of the 64 bit and 32 bit versions, but any yum'ing whatsoever fails now with a conflict from an existing installed version

why would a yum clean and rebuilddb not be the best way to fix rpm errors, certainly this has been the methods I have succesffully employed for many years....

If there is a better way then let me know...

It seems that yum is not able to update existing packages anymore and tries to install  newer rpms along side the old ones....

Here is a sample out put of "yum install mysql-server"

 Install: mysql-server.x86_64 0:4.1.12-3.RHEL4.1 - base

Performing the following to resolve dependencies:
  Update: mysql.x86_64 0:4.1.12-3.RHEL4.1 - base
Total download size: 9.9 M
Downloading Packages:
Running Transaction Test
Finished Transaction Test
Transaction Check Error:   file /usr/bin/mysqldumpslow from install of mysql-4.1
.12-3.RHEL4.1 conflicts with file from package mysql-4.1.10a-2.RHEL4.1
  file /usr/share/info/mysql.info.gz from install of mysql-4.1.12-3.RHEL4.1 conf
licts with file from package mysql-4.1.10a-2.RHEL4.1
  file /usr/share/man/man1/mysql.1.gz from install of mysql-4.1.12-3.RHEL4.1 con
flicts with file from package mysql-4.1.10a-2.RHEL4.1


etc etc


Jim Perrin wrote:
On 10/20/05, Peter Farrow <peter@farrows.org> wrote:
  
Hi There,

Install Centos 4.1 X86-64 onto an athlon64 box.

unfortunately half way through a yum -y upgrade I press ctrl-c on the
wrong window and aborted a couple of the packages in the (large) update.

Now the rpm database things there are multiple packages installed on the
same rpm versions,

eg:
 >rpm -q -a | grep mysql
mod_auth_mysql-2.6.1-2.2
php-mysql-4.3.9-3.6
mysqlclient10-3.23.58-4.RHEL4.1
mysqlclient10-3.23.58-4.RHEL4.1
mysql-devel-4.1.10a-2.RHEL4.1
mysql-4.1.10a-2.RHEL4.1
mysql-4.1.10a-2.RHEL4.1
libdbi-dbd-mysql-0.6.5-10.RHEL4.1

rpm -e mysqlclient10-3.23.58-4.RHEL4.1
error: "mysqlclient10-3.23.58-4.RHEL4.1" specifies multiple packages


    

These are most likely packages of different architecture. one i386,
and one x86_64

  
So I tried a "yum clean all" and tried again but yum fails with a
transaction check error with conflicts of rpms onthemselves.

I did a rpm --rebuilddb  with no joy, and i deleted the __db files from
/var/lib/rpm - still no joy.

    

REALLY not the right way to fix it.....

  
I cn't install any rpms now as it says there are conflicts....

I am fresh out of ideas now...

Any help appreciated...

    

do the following as root (and for your user also)
echo "%_query_all_fmt %%{name}-%%{version}-%%{release}.%%{arch}" >>
~/.rpmmacros

then rpm -q mysqlclient10-3.23.58-4.RHEL4.1, and you will see the
different packages. use the full packagename to remove one. should be
something like mysqlclient10-3.23.58-4.RHEL4.1.i386 or 
mysqlclient10-3.23.58-4.RHEL4.1.x86_64




--
Jim Perrin
System Administrator - UIT
Ft Gordon & US Army Signal Center
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos