Hi, I am confused. See below. But for your reference, please see:
http://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_tweaking_candidate_version I think I made decent summary and examples there. On Sun, Aug 16, 2009 at 04:19:14PM -0300, Daniel Bareiro wrote: > Hi all! ... > For example, I was trying creating the /etc/apt/preferences file with > the following content: > > Package: twinkle > Pin: release a=stable > Pin-Priority: 900 > > Then, I verify the priorities: > # apt-cache policy twinkle Please use # LANG=C apt-cache policy twinkle # LANG=en_US.UTF-8 apt-cache policy twinkle for Enlish :-) Also what is /etc/apt/apt.conf related set up. > twinkle: > Instalados: (ninguno) > Candidato: 1:1.2-3 > Pin del paquete: 1:1.2-3 > Tabla de versiĆ³n: > 1:1.4.2-2 900 > 500 http://debian.freesoftware.org testing/main Packages > 100 /var/lib/dpkg/status > 1:1.2-3 900 > 500 http://ftp.us.debian.org stable/main Packages > > According to man pages of apt_preferences, if it doesn't have defined a > "target release", to installed packages a priority of 100 is assigned > and to the rest is assigned 500. If no other configuration assign PIN. You assigned 900 though to twinkle. Archive for testing and stable is getting 500. > I think for that reason there is a > '500' associated to each reposity. Although the candidate is the package > for stable as I try that it is, is not clear to me why are associated > the priority 900 as much for testing as for stable. You mean 900 for testing. > Independent of this doubt, according to which I was testing, the package > of the stable branch are installed and it stays, that it is what I > wanted; that is to say, if I do upgrade, beyond which the package of > testing has a newer version, it isn't updated the installed one of the > stable branch. Did you use "aptitude install" or "apt-get install"? > Continuing with my understanding of how the priorities works, I tried > adding in my sources.list the unstable repository and adding a block in > the preferences file: > > Package: twinkle > Pin: release a=stable > Pin-Priority: 900 > > Package: twinkle > Pin: release a=unstable > Pin-Priority: 950 What is apt-cache policy? > Here I pose a similar doubt to which I exposed above: why the value 950 > appears associated to each version if I assigned in the preferences file > a priority of 900 to the version of stable branch and 950 to the version > of the unestable branch? ???? I do not know what exactly you did and getting confused. Maybe we need to see script output. You may not be copying right. > Like additional data, I see that /var/lib/dpkg/status moved of place > with value 100. This suggests to me that this file has a listing of all > the installed packages and since those that are under this condition we > said that a priority of 100 is assigned to them, I imagine that this is > the form in which Debian says to us 'all the packages that are in this > file have priority of 100'. Bah, in fact, instead of the _last_ > installed, would be the last ones that sometimes could be installed, > since later I did 'remove'. Osamu -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org