Pinning a package to Feisty
Derek Broughton
news at pointerstop.ca
Mon Oct 29 17:46:09 UTC 2007
Bill Moseley wrote:
> 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?
Can't you just use aptitude?
# aptitude forbid mutt=1.5.15+20070412-1ubuntu1
(or something like that - I haven't tried it). The intent, at least, is
that apt will refuse to upgrade to that specific version, but will upgrade
to any other that becomes available.
--
derek
More information about the ubuntu-users
mailing list