top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Is there a way to force an update/upgrade in yum?

+1 vote
590 views

There's one package that I can't get upgraded, and it's driving me up the wall because every time I run an update via yum or yumex, I have to
remember to exclude it: firefox. Here's the results of my latest try:

Transaction check error:
file /usr/lib/firefox/browser/defaults/preferences from install of firefox-22.0-1.fc19.i686 conflicts with file from package firefox-22.0-1.fc17.i686

I tried using swap:
yum swap firefox*.fc17.i686 firefox*fc.19.i686

because the man page said that that was simply a short form of remove/install, but yum interpreted it as an update. Maybe I'll have to download the file and use rpm to do it, but there should be a way to force it via yum.

posted Aug 1, 2013 by Mandeep Sehgal

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

3 Answers

+1 vote

You have two firefox packages installed. There are multiple ways of fixing this with or without yum.

yum remove firefox-22.0-1.fc17.i686
yum distro-sync
package-cleanup --cleandupes
rpm -e firefox-22.0-1.fc17.i686

Pick one.

answer Aug 1, 2013 by Meenal Mishra
+1 vote

What happens if you just try to "yum remove firefox" and after that is done do a "yum install firefox"?

Since I remember you saying something about salvaging a half-updated machine, did you

(1) do "yum distro-sync full",
(2) make sure that /etc/os-release says Fedora 19, and
(3) check that repository definitions under /etc/yum.repos.d/ actually point to Fedora 19 repos?

Also, I vaguely remember that upgrading from F17 to F19 is not exactly great idea, and that you'd be better off upgrading to F18 first, and only after that upgrade to F19. Though I believe it's now obsolete advice, given that you have already performed the upgrade...

answer Aug 1, 2013 by Amit Parthsarthi
+1 vote

why not simply "rpm -e --nodeps firefox; yum install firefox" and in doubt "package-cleanup --dupes" and/or "package-cleanup --cleandupes"

answer Aug 2, 2013 by Sonu Jindal
Similar Questions
+2 votes

Is it OK to remove dnf with yum remove dnf ? will it cause any problems ?

+1 vote

Any idea why yum doesn't show by default from what mirror it is downloading from?

+3 votes

The command yum grouplist does not show all available groups in Fedora 19. I had the same problem
before in CentOS and other versions of Fedora. As an example, I can install

yum groupinstall "Development Libraries"

but yum grouplist does not show such a group. Is that a bug, or am I doing something wrong?

0 votes

Seems like a rev number is missing in this dependency error from Yum:

# yum -y update
Loaded plugins: langpacks, presto, refresh-packagekit
Resolving Dependencies
--> Running transaction check
---> Package rcssserver3d.i686 0:0.6.6-3.fc18 will be updated
---> Package rcssserver3d.i686 0:0.6.7-1.fc18 will be an update
---> Package simspark.i686 0:0.2.3-3.fc18 will be updated
---> Package simspark.i686 0:0.2.4-1.fc18 will be an update
--> Processing Dependency: ruby(release) for package: 
simspark-0.2.4-1.fc18.i686
--> Finished Dependency Resolution
Error: Package: simspark-0.2.4-1.fc18.i686 (updates)
 Requires: ruby(release)

References to "ruby(release)" seem incomplete. Does this suggest a config error somewhere? rpm says ruby-1.9.3.429-30.fc18.i68 is installed.

...