| Fedora This forum is for the discussion of the Fedora Project. |
| 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
03-04-2007, 05:10 AM
|
#1
|
|
Member
Registered: Jul 2004
Location: VIC, Australia
Distribution: RHEL, CentOS, Ubuntu Server, Ubuntu
Posts: 350
Rep:
|
yum | setting priorities for repositories
I created a custom repository in my /etc/yum.repos.d directory named fedora-dvd.repo with the following contents:
Code:
[dvd]
name=Fedora DVD
baseurl=file:///media/FC_6%20i386%20DVD/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY
However, every time I fire up the yum command it starts by looking the other repositories, starting with livna. Is there a way so that yum first searches the fedora-dvd.repo? I need this because I use a non-permanent Internet connection, and connecting to the internet to use yum every time is a pain.
|
|
|
|
03-04-2007, 09:31 AM
|
#2
|
|
Member
Registered: Oct 2003
Location: Ohio
Distribution: Fedora 17, 18, RHL 5.2
Posts: 537
Rep:
|
To my knowledge there is no way to set priority on repositories. yum looks at all enabled repositories when executing. What I would do in your case is disable the repositories not located locally using the command line. This will force yum to look at the DVD repository on your local drive. For example if you had five repos core, dvd, extras, livna, updates and four of them were on the net you could use the command...
Code:
yum --disablerepo=core,extras,livna,updates <command> <package>
Bill
|
|
|
|
03-04-2007, 12:45 PM
|
#3
|
|
Member
Registered: Jul 2004
Location: VIC, Australia
Distribution: RHEL, CentOS, Ubuntu Server, Ubuntu
Posts: 350
Original Poster
Rep:
|
Quote:
|
Originally Posted by wmakowski
To my knowledge there is no way to set priority on repositories. yum looks at all enabled repositories when executing. What I would do in your case is disable the repositories not located locally using the command line. This will force yum to look at the DVD repository on your local drive. For example if you had five repos core, dvd, extras, livna, updates and four of them were on the net you could use the command...
Code:
yum --disablerepo=core,extras,livna,updates <command> <package>
Bill
|
Thanks...although I am having another problem now, your solution has helped.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:29 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|