example /etc/apt/preferences:

Package: samba
Pin: release a=lenny-backports
Pin-Priority: 999

Package: samba-common
Pin: release a=lenny-backports
Pin-Priority: 999

Package: smbclient
Pin: release a=lenny-backports
Pin-Priority: 999

Package: smbfs
Pin: release a=lenny-backports
Pin-Priority: 999

Package: winbind
Pin: release a=lenny-backports
Pin-Priority: 999

Package: libwbclient0
Pin: release a=lenny-backports
Pin-Priority: 999

Package: ctdb
Pin: release a=lenny-backports
Pin-Priority: 999

Package: samba-doc
Pin: release a=lenny-backports
Pin-Priority: 999

Package: samba-doc-pdf
Pin: release a=lenny-backports
Pin-Priority: 999

Package: drbd8-utils
Pin: release a=unstable
Pin-Priority: 999

Package: drbd8-source
Pin: release a=unstable
Pin-Priority: 999

Package: *
Pin: release a=unstable
Pin-Priority: 99

example /etc/apt/sources.list:

#
# deb cdrom:[Debian GNU/Linux 5.0.4 _Lenny_ - Official amd64 CD Binary-1 20100131-21:33]/ lenny main

deb http://ftp.us.debian.org/debian/ lenny main
deb-src http://ftp.us.debian.org/debian/ lenny main

deb http://security.debian.org/ lenny/updates main
deb-src http://security.debian.org/ lenny/updates main

deb http://volatile.debian.org/debian-volatile lenny/volatile main
deb-src http://volatile.debian.org/debian-volatile lenny/volatile main

deb http://www.backports.org/debian lenny-backports main
deb-src http://www.backports.org/debian lenny-backports main

deb http://ftp.us.debian.org/debian/ unstable main
deb-src http://ftp.us.debian.org/debian/ unstable main

backports keyring:

apt-get install debian-backports-keyring

-OR-

wget -O - http://backports.org/debian/archive.key | apt-key add -
computer/apt_sources_and_pinning.txt · Last modified: 2010/05/08 19:09 by tdobes
Recent changes RSS feed Driven by DokuWiki Valid XHTML 1.0 Valid CSS