DISCUSSION: Using yum to update and install applications.
LinuxAnswers DiscussionThis forum is to discuss articles posted to LinuxAnswers.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have been a user of up2date exclusively up til now. But your summary has convinced me that I might want to dip my toes into yum a little bit. Thanks for laying out the basics for us newbies!
How does yum resolve same package in multiple repositories?
Hi,
Nice article. I've been using yum on top of up2date. actually I let up2date let me know when there are Fedora Core 3 updates and then I use yum to update.
Here is a problem I am having right now:
I have added the dag repository and installed some packages from there.
Recently I installed monodevelop from the official mono repository.
it installs the following packages
===========================
Transaction Listing:
Install: monodevelop.i386 0:0.5.1-1.novell.9.1
Performing the following to resolve dependencies:
Install: gecko-sharp.i386 0:0.6-1.novell.9.1
Install: gtk-sharp.i386 0:1.0.6-0.novell.9.1
Install: gtksourceview-sharp.i386 0:0.5-1.novell.9.1
Install: mono-core.i386 0:1.0.6-1.novell.9.1
Install: mono-data.i386 0:1.0.6-1.novell.9.1
Install: mono-web.i386 0:1.0.6-1.novell.9.1
Install: monodoc.i386 0:1.0.5-1.novell.9.1
===============================
dag also has some mono related packages (mono-core, gtk-sharp, etc).
When I do a 'yum update' with the dag repository enabled yum complains about missing dependencies and it fails to update any of the packages (from any repository)
=================================
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package monodoc.i386 0:1.0.5-1.1.fc3.rf set to be updated
---> Package mono-data.i386 0:1.0.6-1.1.fc3.rf set to be updated
---> Package mono-web.i386 0:1.0.6-1.1.fc3.rf set to be updated
---> Package gecko-sharp.i386 0:0.6-1.1.fc3.rf set to be updated
---> Package monodevelop.i386 0:0.5.1-3.1.fc3.rf set to be updated
---> Package mono-core.i386 0:1.0.6-1.1.fc3.rf set to be updated
---> Package gtksourceview-sharp.i386 0:0.5-1.1.fc3.rf set to be updated
--> Running transaction check
--> Processing Dependency: mono(System) = 1.0.5000.0 for package: gtk-sharp
--> Processing Dependency: mono(mscorlib) = 1.0.5000.0 for package: gtk-sharp
--> Processing Dependency: mono(System.Xml) = 1.0.5000.0 for package: gtk-sharp
--> Finished Dependency Resolution
Error: missing dep: mono(System) = 1.0.5000.0 for pkg gtk-sharp
Error: missing dep: mono(mscorlib) = 1.0.5000.0 for pkg gtk-sharp
Error: missing dep: mono(System.Xml) = 1.0.5000.0 for pkg gtk-sharp
===================================
My 'solution' for now was the following:
Disable the dag repository
yum update (to update all the packages that are not in dag)
yum remove monodevelop (to avoid package conflicts with dag)
yum --enablerepo=dag update (to update all the packages I got from dag)
yum --enablerepo=go-mono install monodevelop (to reinstall the monodevelop packages)
that solved my problem for now. But the question is: Is there a way to tell YUM that if there is a conflict for the mono packages always favor the mono official site?
How does yum resolve same package in multiple repositories?
Forget the previous question. Two seconds after sending it I figured out the answer: Here it is for anyone to read it:
When the same package exists in two repositories with different versions and you want to force YUM to always update from one of them: exclude the packages from the other repository.
In my example I explicitly excluded the offending packages from the dag repository by adding an exclude option to the dag.repo file (or to the dag section of the yum.repo):
I have a bunch of machines running FC3, & i just downloaded all the FC# updates on one of the machine
is it possible to use this machine as a update server for the other machines?
so that they dont need to be updated via internet & can be updated much faster..
I have been a user of up2date exclusively up til now. But your summary has convinced me that I might want to dip my toes into yum a little bit. Thanks for laying out the basics for us newbies!
I just installed fedora core 6 first two cd but now i am trying to install the 3rd cd which i downloaded from the fedoraweb site its saying the same thing "cannot execute binary file"
Also I used the Yum option to up date the software
Also I dont know how can I install gcc because I know the 3rd cd comes with built in GCC... Can you please guide me...
Thank you
Last edited by crazyfuzzy; 01-24-2007 at 10:55 AM.
I just installed fedora core 6 first two cd but now i am trying to install the 3rd cd which i downloaded from the fedoraweb site its saying the same thing "cannot execute binary file"
Also I used the Yum option to up date the software
Also I dont know how can I install gcc because I know the 3rd cd comes with built in GCC... Can you please guide me...
Thank you
hi all,
this was very informative. i was searching for this info. for quiet some time.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.