RE: yum question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxx
WWW: http://www.students.uiuc.edu/~bdunne/
 
"What fun is it being 'cool' if you can't wear a sombrero?"




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux