[Yum] Is pkgpolicy even implemented?

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

 



I'm trying (desperately) to work with the pkgpolicy config variable to 
force a particular configuration that I need (I need a local repository 
to override all others).  But I can't get pkgpolicy=last (or first) to 
work.

I've set up my own repository and have included in it some packages that 
I want to override anything that anyone else has.  I've put my 
repository last in the list (by using the convention of prefixing a 
2-digit number to all repositories, and having mine be 99-wba, which was 
suggested elsewhere, and which I hope works...perhaps someone can say 
for sure).  Here's my yum.conf file:

    [main]
    cachedir=/var/cache/yum
    debuglevel=2
    logfile=/var/log/yum.log
    pkgpolicy=last
    distroverpkg=redhat-release
    tolerant=1
    exactarch=1
    retries=20
    obsoletes=1
    gpgcheck=0

and here's my repository list:

    [01-base]
    name=Fedora Core $releasever - $basearch - Base
    baseurl=file:///mnt/wba/repo/distro/fedora/$releasever
    enabled=1
    gpgcheck=0

    [02-updates-released]
    name=Fedora Core $releasever - $basearch - Released Updates
    baseurl=file:///mnt/wba/repo/updates/fedora/$releasever
    enabled=1
    gpgcheck=0

    [50-freshrpms]
    name=Fedora Linux $releasever - $basearch - freshrpms
    baseurl=file:///mnt/wba/repo/freshrpms/fedora/$releasever
    enabled=1
    gpgcheck=0

    [99-wba]
    name=WBA updates for Fedora Core $releasever - $basearch
    baseurl=file:///mnt/wba/repo/wba/fedora/$releasever
    enabled=1
    gpgcheck=0

For example, I have a custom-compiled version of transcode (a prior 
version from the FreshRPMS repository) in my repository.  But if I do a 
"yum list all transcode", I get:

    Setting up Repos
    01-base                   100% |=========================| 1.1 kB   
    00:00
    02-updates-released       100% |=========================|  951 B   
    00:00
    50-freshrpms              100% |=========================|  951 B   
    00:00
    99-wba                    100% |=========================| 1.1 kB   
    00:00
    Reading repository metadata in from local files
    01-base   : ################################################## 2622/2622
    02-updates: ################################################## 677/677
    50-freshrp: ################################################## 477/477
    99-wba    : ################################################## 39/39
    Installed Packages
    transcode.i386                           0.6.12-5.1.fc2.fr     
    installed
    Available Packages
    transcode.i386                           0.6.14-1.1.fc3.fr     
    50-freshrpms

My version is the installed 0.6.12-5.1.fc2.fr version, so I would have 
expected no update to take place.  But that's not what happens:

    [root]# yum update transcode
    Setting up Update Process
    Setting up Repos
    01-base                   100% |=========================| 1.1 kB   
    00:00
    02-updates-released       100% |=========================|  951 B   
    00:00
    50-freshrpms              100% |=========================|  951 B   
    00:00
    99-wba                    100% |=========================| 1.1 kB   
    00:00
    Reading repository metadata in from local files
    01-base   : ################################################## 2622/2622
    02-updates: ################################################## 677/677
    50-freshrp: ################################################## 477/477
    99-wba    : ################################################## 39/39
    Resolving Dependencies
    --> Populating transaction set with selected packages. Please wait.
    ---> Package transcode.i386 0:0.6.14-1.1.fc3.fr set to be updated
    --> Running transaction check

    Dependencies Resolved
    Transaction Listing:
      Update: transcode.i386 0:0.6.14-1.1.fc3.fr - 50-freshrpms
    Total download size: 2.4 M
    Is this ok [y/N]:

Anybody have any ideas, suggestions, etc.?  I even grepped for pkgpolicy 
in the code for 2.1.13 and can only find one reference, in the config 
parsing code.  Is it even implemented?



[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux