yum question

bdunne bdunne at students.uiuc.edu
Sun Nov 30 00:40:24 UTC 2003


gdbnet wrote:
>I'd like to know if there is a way to tell yum which repository has got
>priority for download a certain package.

Not on a per package basis, but you can specify that repositories get
preference over others.

In yum.conf, you can indicate the option "pkgpolicy".  The following is from
the yum.conf man page:

       pkgpolicy=[newest|last]
              Default:  newest.   Package  sorting  order.   When a package is
              available from multiple servers, newest will  install  the  most
              recent  version of the package found. last will sort the servers
              alphabetically by serverid and install the version of the  pack-
              age  found  on  the  last  server in the resulting list.  If you
              don’t understand the above then you’re best left  not  including
              this option at all and letting the default occur.

Hope this helps.

Cheers,
Bryan

--
******************************************
Bryan C Dunne
E-Mail: bdunne at uiuc.edu
WWW: http://www.students.uiuc.edu/~bdunne/
 
"What fun is it being 'cool' if you can't wear a sombrero?"





More information about the users mailing list