Liviu Andronic
2009-Dec-06 23:09 UTC
[R-sig-Debian] setting priority of cran2deb repository - SOLVED
Dear all This post briefly explains how to configure aptitude to always prefer cran2deb binaries over Debian/testing binaries, even when the cran2deb version seems lower than the debian-packaged version. Pin the repository using its 'cran2deb' codename. liviu at debian-liv:~$ cat /etc/apt/preferences Package: * Pin: release n=cran2deb Pin-Priority: 1001 This should result in the following. liviu at debian-liv:~$ apt-cache policy | grep cran 1001 http://debian.cran.r-project.org testing/ Packages release o=root,a=testing,n=cran2deb,l=root,c origin debian.cran.r-project.org Now aptitude will upgrade, for example, r-cran-urca 1.2-3-1cran1 -> 1.2-3-1cran2 instead of r-cran-urca 1.2-3-1cran1 -> 1.2-3-2 Unfortunately, this doesn't seem to affect Synaptic (possible bug). For the background thread see this [1]. Regards Liviu [1] http://www.mail-archive.com/debian-user at lists.debian.org/msg560528.html -- Do you know how to read? http://www.alienetworks.com/srtest.cfm Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail