LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   yum - Package Conflicts (https://www.linuxquestions.org/questions/fedora-35/yum-package-conflicts-548028/)

revof11 04-22-2007 07:59 AM

yum - Package Conflicts
 
I have four packages that can be updated (listing below). However, when I run yum update \*, I am told they conflict with currently existing packages.

Is there any way to "flush" the packages so that a) they do not appear for update or b) they can be installed?

Root:
Code:

=============================================================================
 Package                Arch      Version          Repository        Size
=============================================================================
Updating:
 glib2-devel            x86_64    2.12.9-1.fc6    updates          1.3 M
 gpm                    i386      1.20.1-82.fc6    updates          185 k
 gtk2-devel              x86_64    2.10.8-3.fc6    updates          3.0 M
 pango-devel            i386      1.14.10-1.fc6    updates          280 k

Transaction Summary
=============================================================================
Install      0 Package(s)       
Update      4 Package(s)       
Remove      0 Package(s)       

Total download size: 4.8 M
Is this ok [y/N]:


Errors (obviously this is just a snippet):
Code:

  file /usr/share/gtk-doc/html/gobject/ix05.html from install of glib2-devel-2.12.9-1.fc6 conflicts with file from package glib2-devel-2.12.3-2.fc6
  file /usr/share/gtk-doc/html/gobject/ix06.html from install of glib2-devel-2.12.9-1.fc6 conflicts with file from package glib2-devel-2.12.3-2.fc6
  file /usr/share/gtk-doc/html/gobject/ix07.html from install of glib2-devel-2.12.9-1.fc6 conflicts with file from package glib2-devel-2.12.3-2.fc6
  file /usr/share/gtk-doc/html/gobject/ix08.html from install of glib2-devel-2.12.9-1.fc6 conflicts with file from package glib2-devel-2.12.3-2.fc6
  file /usr/share/gtk-doc/html/gobject/pr01.html from install of glib2-devel-2.12.9-1.fc6 conflicts with file from package glib2-devel-2.12.3-2.fc6
  file /usr/share/gtk-doc/html/gobject/pt01.html from install of glib2-devel-2.12.9-1.fc6 conflicts with file from package glib2-devel-2.12.3-2.fc6
  file /usr/share/gtk-doc/html/gobject/pt02.html from install of glib2-devel-2.12.9-1.fc6 conflicts with file from package glib2-devel-2.12.3-2.fc6
  file /usr/share/gtk-doc/html/gobject/pt03.html from install of glib2-devel-2.12.9-1.fc6 conflicts with file from package glib2-devel-2.12.3-2.fc6
  file /usr/share/gtk-doc/html/gobject/rn01.html from install of glib2-devel-2.12.9-1.fc6 conflicts with file from package glib2-devel-2.12.3-2.fc6
  file /usr/share/gtk-doc/html/gobject/rn02.html from install of glib2-devel-2.12.9-1.fc6 conflicts with file from package glib2-devel-2.12.3-2.fc6
  file /usr/share/gtk-doc/html/gobject/signal.html from install of glib2-devel-2.12.9-1.fc6 conflicts with file from package glib2-devel-2.12.3-2.fc6
  file /usr/share/gtk-doc/html/gobject/style.css from install of glib2-devel-2.12.9-1.fc6 conflicts with file from package glib2-devel-2.12.3-2.fc6
  file /usr/share/gtk-doc/html/gobject/tools-ginspector.html from install of glib2-devel-2.12.9-1.fc6 conflicts with file from package glib2-devel-2.12.3-2.fc6
  file /usr/share/gtk-doc/html/gobject/tools-gob.html from install of glib2-devel-2.12.9-1.fc6 conflicts with file from package glib2-devel-2.12.3-2.fc6
  file /usr/share/gtk-doc/html/gobject/tools-gtkdoc.html from install of glib2-devel-2.12.9-1.fc6 conflicts with file from package glib2-devel-2.12.3-2.fc6
  file /usr/share/gtk-doc/html/gobject/tools-refdb.html from install of glib2-devel-2.12.9-1.fc6 conflicts with file from package glib2-devel-2.12.3-2.fc6

Error Summary
-------------


Lenard 04-22-2007 09:10 AM

Yes, but your getting a conflict for glib2-devel package only. Why you getting the older version listed as an update is not right. Check that you do infact have the both the 32bit and 64bit versions of glib2 and the glib2-devel.x86_64 packages currently installed;

rpm -qa --qf="%{n}-%{v}-%{r}.%{arch}\n" 'glib2*' | sort

Sample expected results:

glib2-2.12.3-2.fc6.i386
glib2-2.12.3-2.fc6.x86_64
glib2-devel-2.12.3-2.fc6.x86_64

If for some strange reason you have the 32bit (i386) version of glib2-devel installed remove it; rpm -e glib2-devel-2.12.3-2.fc6.i386

If your missing the 64bit version of glib2-devel then install this by itself only;

yum install glib2-devel.x86_64

Next type: yum clean all

Then try again if you still get the glib2-devel error try;

yum update --exclude=glib2-devel

macemoneta 04-22-2007 09:14 AM

If you are not doing software development for Gnome applications, you can just:

yum remove glib2-devel

You'll get a list of requisites that are also going to be removed; just make sure they are all "-devel" packages (headers files).

In general, x86_64 maintenance can be a little more complex than x86, because of multilib support (having both x86 and x86_64 files on the same machine).

revof11 04-23-2007 05:57 PM

Quote:

Originally Posted by macemoneta
If you are not doing software development for Gnome applications, you can just:

yum remove glib2-devel

You'll get a list of requisites that are also going to be removed; just make sure they are all "-devel" packages (headers files).

In general, x86_64 maintenance can be a little more complex than x86, because of multilib support (having both x86 and x86_64 files on the same machine).

Actually I am... I'm attempting to learn some more about UI development in Linux and will be moving on to 3D and Direct X-like development in SDL. I wanted to learn the basics of Gnome app development before doing anything else.


Anyway...

Here's my run (summarized, of course):
Code:

rpm -qa --qf="%{n}-%{v}-%{r}.%{arch}\n" 'glib2*' | sort
glib2-2.12.3-2.fc6.i386
glib2-2.12.3-2.fc6.x86_64
glib2-2.12.9-1.fc6.i386
glib2-2.12.9-1.fc6.x86_64
glib2-devel-2.12.3-2.fc6.i386
glib2-devel-2.12.3-2.fc6.x86_64
glib2-devel-2.12.9-1.fc6.i386

rpm -e glib2-2.12.3-2.fc6.i386 glib2-devel-2.12.3-2.fc6.i386 glib2-devel-2.12.9-1.fc6.i386

rpm -qa --qf="%{n}-%{v}-%{r}.%{arch}\n" 'glib2*' | sort
glib2-2.12.3-2.fc6.x86_64
glib2-2.12.9-1.fc6.i386
glib2-2.12.9-1.fc6.x86_64
glib2-devel-2.12.3-2.fc6.x86_64

yum install glib2-devel
Running Transaction
  Installing: glib2-devel                  ######################### [1/3]
  Updating  : glib2-devel                  ######################### [2/3]
  Cleanup  : glib2-devel                  ######################### [3/3]

Installed: glib2-devel.i386 0:2.12.9-1.fc6
Updated: glib2-devel.x86_64 0:2.12.9-1.fc6
Complete!

yum clean all
Loading "installonlyn" plugin
Cleaning up Everything

yum update \*
-- insert same conflicts here --

yum update --exclude=glib2-devel
-- insert same conflicts here --




Ok... so with that I got frustrated.
So... I just removed everything:

Code:

yum remove glib2-devel
Complete!

Then, I reinstalled everything an voila!
Everything is fine again.

I'm not sure what caused the situation, but it's resolved now after a gut and replace run.

Thanks! :)

macemoneta 04-23-2007 07:43 PM

I noticed that you had multiple versions of the same files. Why were you installing instead of updating? Did you need multiple versions for your development activities? If not, I think that may be how you got yourself into trouble.

Lenard 04-24-2007 06:28 AM

You had somehow had two versions of glib-devel 32bit installed, why is unknown, but the fix would have been to remove the older version;

rpm -e glib2-devel-2.12.9-1.fc6.i386

No reason to remove everything just to reinstall.


All times are GMT -5. The time now is 10:17 PM.