LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 03-04-2007, 05:10 AM   #1
the_gripmaster
Member
 
Registered: Jul 2004
Location: VIC, Australia
Distribution: RHEL, CentOS, Ubuntu Server, Ubuntu
Posts: 357

Rep: Reputation: 38
Question 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.
 
Old 03-04-2007, 09:31 AM   #2
wmakowski
Member
 
Registered: Oct 2003
Location: Ohio
Distribution: Fedora 18, 19, RHL 5.2
Posts: 546

Rep: Reputation: 43
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
 
Old 03-04-2007, 12:45 PM   #3
the_gripmaster
Member
 
Registered: Jul 2004
Location: VIC, Australia
Distribution: RHEL, CentOS, Ubuntu Server, Ubuntu
Posts: 357

Original Poster
Rep: Reputation: 38
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.
 
  


Reply

Tags
yum


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change the YUM repositories Unforgiven79 Linux - Newbie 1 07-17-2006 03:05 AM
rsync yum repositories mijohnst Linux - Networking 3 04-20-2006 10:29 PM
How do you add more Yum repositories? Wheat_Thins Linux - Newbie 1 11-27-2005 01:54 PM
yum repositories ?? ZeroIdea Linux - Software 2 10-23-2005 06:02 AM
Apt / Yum Repositories? bxb32001 Fedora 1 11-04-2003 10:46 PM


All times are GMT -5. The time now is 02:20 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration