The only trade-off is that it will take more time than just downloading and installing the binary package. If you just want to follow the current testing and not future testings, replace "testing" with the current codename as of this writing it is "buster". Sign up to join this community. The best answers are voted up and rise to the top.
Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. How can I run Debian stable but install some packages from testing? Ask Question. Asked 12 years, 7 months ago. Active 1 year, 6 months ago. Viewed k times. What's the best way of installing only certain packages from Testing? Improve this question. Gareth Gareth 8, 13 13 gold badges 42 42 silver badges 44 44 bronze badges.
This is what the latest official documentation has to say: Packages from mixed source of archives. Add a comment. Active Oldest Votes. EDIT: Fixed some priority pins, and updated the list.
Improve this answer. SineSwiper SineSwiper 2, 3 3 gold badges 13 13 silver badges 10 10 bronze badges. Did you run apt-get update after you created the config files? I'm getting what seems to me inconsistent behaviours using this method. This answer just broke my system. After an attempt to do sudo apt-get update , I got an update error. Then restarted, which gave me Xsession error , restarted again, and now I don't have gui.
I'm going to recommend folks heed the negative comments on this post. I just got bit by it on the recent Debian 9 update, which was corrected by reverting these changes. Heed the advice in Debian's article on this matter: wiki. Show 5 more comments. Flow 9 9 silver badges 15 15 bronze badges. That was quick. I was posting so as to share the information I'd just come across!
Nice one! I've never actually used the apt. It seems simpler that the preferences file method, but gives you less precise control. Answer needs upgrading; this config will break things completely now that squeeze has become stable and lenny has become oldstable. Not useable anymore, please update — Lothar.
Show 6 more comments. This is a good method too, not at quick as easy as apt. This is too complicated for the task Using APT::Default-Release does set the pin priority of the release to similar to how you set it to and the negative pinning for the rest is not really needed I'm not sure how to reply to you Raphael. It seems a very elegant way of doing things.
In general, mixing stable and upstream Debian repos will lead to dependency problems down the road, judging by thousands of posts on the Debian forums by newbies that have done exactly what you advise, only to realize later that many packages are now uninstallable. Debian specifically advises against your method. A safer method is to download the deb directly from packages.
This does take some skill for some packages, but absolutely will not break anything. The best method is to compile the package using the Stable tree. I do not understand your APT Preferences. Backports has a priority of 1, yet you gave it ; and any non-installed package has a priority of , but you gave to Stable and to Testing and Sid. Is it not easier to give Testing and Sid a priority of 1, like Backports? Hence, one possible alternative would be to install the.
However, for all the searching I've done on several occasions and failed to come up with a simple-to-follow guide for how to do this, a generic solution one that works for binary, compiled packages as well would be great. For each entry stable, testing, unstable you have pin-priority I use only when I want to downgrade something. So, if I tried to install iceweasel, it would be downloaded from the testing branch because it has the highest priority. Skip to content apt debian I want to install a single package and its dependencies, but only to the extent those are not satisfiable in Wheezy from Debian Jessie onto my Wheezy system, without upgrading "everything and the kitchen sink" to the Jessie versions.
0コメント