[CentOS] Yum issue on CentOS 5, x86_64

Mon Apr 16 22:31:13 UTC 2007
Garrick Staples <garrick at usc.edu>

On Mon, Apr 16, 2007 at 05:16:36PM -0500, Styma, Robert E (Robert) alleged:
> 
> I just loaded CentOS 5 on a new x86_64 machine
> I built for my wife.  I am converting her from
> the dark $ide. :-)
> 
> I started getting the following messages from yum:
> 
> ]: yum update
> =====
> Updating:
>  subversion              x86_64     1.4.3-0.1.el5.rf  rpmforge
> 4.4 M
[..snip..]
> 
> Transaction Check Error:
>   file /usr/share/emacs/site-lisp/psvn.el from install of
> subversion-1.4.3-0.1.el5.rf conflicts with file from package
> subversion-1.4.2-2.el5
>   file /usr/share/xemacs/site-packages/lisp/psvn.el from install of
> subversion-1.4.3-0.1.el5.rf conflicts with file from package
> subversion-1.4.2-2.el5
> 
> Error Summary
> -------------
> 
> [styma14]: rpm -e subversion-1.4.2-2.el5
> error: "subversion-1.4.2-2.el5" specifies multiple packages
> [styma14]: rpm -qa | grep subversion
> subversion-1.4.2-2.el5
> subversion-1.4.2-2.el5
> 
> ######################################
> It appears I have a package installed twice.  I tried the
> normal "rpm is damaged" sequence of:
> 
> 
> rm -f /var/lib/rpm/__db*
> db_verify /var/lib/rpm/Packages
> rpm --rebuilddb
> 
> But that did not help the situation.  Are there any suggestions on how
> to get
> rid of this one piece and get past this error?  I tried a -f on the rpm
> -e and it
> failed the same way.

'rpm -q --qf '%{NAME} %{ARCH}\n' subversion will show that you have i386
and x86_64 packages installed, which is normal.  The rpmforge repo seems
to only have the x86_64 version, leaving the newer x86_64 package to
conflict with the older i386 package.

Options:
  1) Disable rpmforge
  2) Exclude subversion from rpmforge .repo
  3) 'rpm -e --allmatches subversion; yum install subversion'

-- 
Garrick Staples, GNU/Linux HPCC SysAdmin
University of Southern California
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.centos.org/pipermail/centos/attachments/20070416/b73a9b8c/attachment-0005.sig>