force change of package version

Paul Howarth paul at city-fan.org
Sun Jul 17 12:44:28 UTC 2005


On Sat, 2005-07-16 at 17:14 +0100, Chris Jones wrote:
> Hi,
> 
> How can I force change the vesion of a package using yum ?
> 
> I am trying to install some packages on a Fc4 system I upgraded from 
> FC3, but get the following error
> 
> yelp-2.10.0-1.i386.rpm    100% |=========================|  21 kB    00:00
> ---> Package yelp.i386 0:2.10.0-1 set to be updated
> --> Running transaction check
> --> Processing Dependency: libxpcom.so for package: yelp
> --> Processing Dependency: libgtkembedmoz.so for package: yelp
> --> Processing Dependency: mozilla >= 1.7.8 for package: yelp
> --> Restarting Dependency Resolution with new changes.
> --> Populating transaction set with selected packages. Please wait.
> ---> Package mozilla.i386 37:1.7.8-2 set to be updated
> --> Running transaction check
> --> Processing Dependency: mozilla-nss = 37:1.7.8-2 for package: mozilla
> --> Processing Dependency: mozilla-nspr = 37:1.7.8-2 for package: mozilla
> --> Finished Dependency Resolution
> Error: Missing Dependency: mozilla-nss = 37:1.7.8-2 is needed by package 
> mozilla
> Error: Missing Dependency: mozilla-nspr = 37:1.7.8-2 is needed by 
> package mozilla
> 
> and
> 
> root at localhost /home/jonesc > rpmquery mozilla-nss mozilla-nspr
> mozilla-nss-1.7.8-2.0.fc3.kde
> mozilla-nspr-1.7.8-2.0.fc3.kde
> 
> So it seems I have a few old FC3 pacakges left over causing problems. 
> How can I switch over to the FC4 versions ? If I try a yum remove on the 
> above packages, then many many other packages are also tagged for 
> removal which I don't want.
> 
> Note, with apt and syanptic I would just do a "force version" to fix 
> this - Is thre something similar for yum ?

This is happening because in FC3 you installed mozilla from a
third-party source, and that version of mozilla is still "later" than
the official FC4 packages. You can try updating it as follows:

1. Install yum-utils from Fedora Extras:

# yum install yum-utils

2. Download the FC4 versions of the mozilla packages you have installed:

# yumdownloader $(rpm -qa --qf '%{NAME}\n' mozilla\*)

3. Install the FC4 versions of mozilla you just downloaded:

# rpm -Uvh --oldpackage mozilla*.rpm

Hopefully this won't have any further dependency issues.

Paul.
-- 
Paul Howarth <paul at city-fan.org>




More information about the fedora-list mailing list