Pinning a package to Feisty

Bill Moseley moseley at hank.org
Mon Oct 29 14:29:02 UTC 2007


I built 1.5.13-1.1ubuntu3 from Feisty source on my Gutsy machine.
I now need to tell apt not to upgrade to Gutsy version, which it wants
to do.  So I added:

    $ cat /etc/apt/preferences 
    Package: mutt
    Pin: version 1.5.13*
    Pin-Priority: 1000

Thus:

    $ apt-cache policy mutt
    mutt:
      Installed: 1.5.13-1.1ubuntu3
      Candidate: 1.5.13-1.1ubuntu3
      Package pin: 1.5.13-1.1ubuntu3
      Version table:
         1.5.15+20070412-1ubuntu1 1000
            500 http://us.archive.ubuntu.com gutsy/main Packages
     *** 1.5.13-1.1ubuntu3 1000
            100 /var/lib/dpkg/status

My question is can I instead pin so if a *newer* version of mutt
becomes available in Gutsy (hopefully fixing a bug that forced me to
pin in the first place) then the new version will get installed?

Thanks,



-- 
Bill Moseley
moseley at hank.org





More information about the ubuntu-users mailing list