Pinning a package to Feisty

Michael R. Head burner at suppressingfire.org
Wed Oct 31 01:43:11 UTC 2007


On Mon, 2007-10-29 at 07:29 -0700, 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?

Instead of using pinning, you could change the version number to
something like

1.5.13-1.1ubuntu3moseley1

That way, when 1.5.13-1.1ubuntu4 come out, it'll be newer, but
1.5.13-1.1ubuntu3 will still be older.

> Thanks,
> 
> 
> 
> -- 
> Bill Moseley
> moseley at hank.org
> 
> 
-- 
Michael R. Head <burner at suppressingfire.org>
http://picasaweb.google.com/demiri.head.wedding
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3189 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20071030/e2a1402e/attachment.bin>


More information about the ubuntu-users mailing list