Pinning and backports
Shot - Piotr Szotkowski
shot at hot.pl
Tue Aug 23 11:50:56 UTC 2005
Hello.
Magnus Therning:
> Is there some easy way of achieving the following in APT?
>
> - Have backports in source.list
> - Keep the system mainly on Hoary (i.e. I don't want 'apt-get upgrade'
> to pull in all the backports packages)
> - Still get all the security updates for Hoary
I have a similar setup:
Hoary + official security + official updates by default
official backports + unofficial backports and extras + Breezy as options
If you read `man apt_preferences` the following should be clear. :o)
My /etc/apt/sources.list:
deb http://archive.ubuntu.com/ubuntu/ hoary main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ hoary-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ hoary-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ hoary-security main restricted universe multiverse
deb http://ubuntu-backports.mirrormax.net/ hoary-backports main universe multiverse restricted
deb http://ubuntu-backports.mirrormax.net/ hoary-extras main universe multiverse restricted
deb http://archive.ubuntu.com/ubuntu/ breezy main restricted universe multiverse
My /etc/apt/preferences:
Package: *
Pin: origin ubuntu-backports.mirrormax.net
Pin-Priority: 499
Package: *
Pin: release hoary-backports
Pin-Priority: 499
Package: *
Pin: release breezy
Pin-Priority: 1
Cheers,
-- Shot
--
If life was fair, Elvis would be alive and all the
impersonators would be dead. -- Johnny Carson
====================== http://shot.pl/hovercraft/ === http://shot.pl/1/125/ ===
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20050823/c83adce5/attachment.sig>
More information about the ubuntu-users
mailing list