Thursday, May 26, 2005

Downgrading Debian GNU/Linux from unstable to testing

For several reasons, I had a large number of machines running Debian GNU/Linux from the unstable distribution. Aside from having the benefit of having recent packages and a wider selection of choices of those packages, it also has a whole lot of disadvantages.



With Sarge heading slowly, but steadily, to a new release as stable, I have decided to switch over my boxes to testing. Hopefully, this will not leed to a loss of functionality, while we keep the selection of packages we have now. I also figure that the longer we wait, the more difficult it is going to be.



Some effective use of Google pointed me to a post by m_yates on linuxquestions.org in which the use of Debian's pinning mechanism is illustrated to achieve the downgrade.



So, I proceeded by replacing all occurences of unstable by sarge in /etc/apt/sources.list and I created /etc/apt/preferences as explained in the above mentioned post.




X-comment: Force downgrade to testing.
Package: *
Pin: release a=testing
Pin-Priority: 1100


After this, simply running # dselect update, followed by #apt-get dist-upgrade -u did all the work and I have now successfully downgraded several boxes from unstable to testing without any problems.



No comments:

Post a Comment

Please share your view and opinions on what I wrote. In order to maintain quality, all comments will be moderated for merit. Contributions that call me out on statements that appear unfounded, wrong, or simply with which you disagree are highly appreciated and are even encouraged. Spam and 'me too' answers will be ignored.