[R-sig-Debian] setting priority of cran2deb repository - SOLVED

Liviu Andronic landronimirc at gmail.com
Mon Dec 7 00:09:36 CET 2009

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].


[1] http://www.mail-archive.com/debian-user@lists.debian.org/msg560528.html

Do you know how to read?
Do you know how to write?

More information about the R-SIG-Debian mailing list