{"id":10343,"date":"2023-04-01T11:59:33","date_gmt":"2023-04-01T09:59:33","guid":{"rendered":"https:\/\/monodes.com\/predaelli\/?p=10343"},"modified":"2023-04-01T12:06:38","modified_gmt":"2023-04-01T10:06:38","slug":"debian-programs-from-stable-testing-unstable-and-even-experimental-without-trauma","status":"publish","type":"post","link":"https:\/\/monodes.com\/predaelli\/2023\/04\/01\/debian-programs-from-stable-testing-unstable-and-even-experimental-without-trauma\/","title":{"rendered":"Debian: programs from stable, testing, unstable and even experimental without trauma"},"content":{"rendered":"\n<p>I originally <a href=\"https:\/\/monodes.com\/predaelli\/2020\/02\/23\/debian-programmi-da-stable-testing-unstable-ed-anche-experimental-senza-traumi\/\">wrote this in Italian<\/a> but I think that it may be more useful translated into English<\/p>\n\n\n\n<p>In daily use of computers it often happens that you need a stable base and at the same time use recent, very recent or even &#8216;beta\/alpha\/experimental&#8217; versions of some specific programs. <\/p>\n\n\n\n<p>Debian users  are no less, indeed! It also apply to all its derivatives, starting from Ubuntu.<\/p>\n\n\n\n<p><a href=\"https:\/\/www.matteogalacci.it\/2017\/06\/29\/debian-pinning-installare-versioni-di-uno-specifico-repository\/\">Matteo Galacci suggest (in an italian article)<\/a>  \u2013 like many others \u2013 to use Debian&#8217;s \u201cpinning\u201d capability.<\/p>\n\n\n\n<p>In reality, if the need is to have &#8216;almost all&#8217; stable programs, some more recent and a few &#8216;very recent&#8217; it is possible to obtain this behavior by exploiting the basic algorithm of the Debian package manager apt. Consulting the man-pages that tells us how to set up our sources (<code class=\"\" data-line=\"\">man sources.list<\/code>) we read:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>The source list \/etc\/apt\/sources.list and the files contained in \/etc\/apt\/sources.list.d\/ are designed to support any number of active sources and a variety of source media. The files list one source per line (one-line style) or contain multiline stanzas defining one or more sources per stanza (deb822 style),  <strong>with the most preferred source listed first<\/strong> (in case a single version is available from more than one source). The information available from the configured sources is acquired by apt-get update (or by an equivalent command from another APT front-end).<\/p>\n<\/blockquote>\n\n\n\n<p>The &#8216;trick&#8217; is in the part in bold. Matteo first proposes testing, then unstable and finally stable. So apt will almost never choose stable releases. I use a \/etc\/apt\/sources.list like this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\" data-line=\"\">deb http:\/\/ftp.it.debian.org\/debian\/ stable main contrib non-free\n# stable-updates, previously known as &#039;volatile&#039;\ndeb http:\/\/ftp.it.debian.org\/debian\/ stable-updates main contrib non-free\n# if something is not in stable look in testing\ndeb http:\/\/ftp.it.debian.org\/debian\/ testing main contrib non-free\n# then search for it in unstable \ndeb http:\/\/ftp.it.debian.org\/debian\/ unstable main contrib non-free\n# as an extrema ration look in experimental\ndeb http:\/\/ftp.it.debian.org\/debian\/ experimental main contrib non-free<\/code><\/pre>\n\n\n\n<p>Putting stable <strong>first<\/strong>, and <strong>then<\/strong> testing, unstable and also experimental in this order<\/p>\n\n\n\n<p>So when we don&#8217;t need particular versions, just ask for &#8216;<code class=\"\" data-line=\"\">apt install package<\/code>&#8216; and the most stable version possible will be chosen: if it&#8217;s in stable, otherwise it will take the one in testing, therefore it will search into unstable and finally experimental.<\/p>\n\n\n\n<p>Easy, fast, practical. And above all it works, and it works well. With this APT setup, I&#8217;ve been using the Radeon card drivers from experimental for years without any other programs being upgraded to experimental versions.<\/p>\n\n\n\n<p>Then if we wanted a particular version just run &#8216;<code class=\"\" data-line=\"\">apt install package unstable<\/code>&#8216; and the unstable one will be installed.<\/p>\n\n\n\n<p>In the case of updates, APT will remember our choice and continue to update the &#8216;package&#8217; from the source indicated by us. If over time the version we wanted should (as we all hope) enter testing and then stable, just re-launch &#8216;<code class=\"\" data-line=\"\">apt install package\/stable<\/code>&#8216; to go back to updating from stable.<\/p>\n\n\n\n<p>If we then wanted to &#8216;go down&#8217; in version just add an <code class=\"\" data-line=\"\">--allow-downgrade<\/code>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p class=\"excerpt\">I originally wrote this in Italian but I think that it may be more useful translated into English In daily use of computers it often happens that you need a stable base and at the same time use recent, very recent or even &#8216;beta\/alpha\/experimental&#8217; versions of some specific programs. Debian users are no less, indeed!&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"https:\/\/monodes.com\/predaelli\/2023\/04\/01\/debian-programs-from-stable-testing-unstable-and-even-experimental-without-trauma\/\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[73,117],"tags":[],"class_list":["post-10343","post","type-post","status-publish","format-standard","hentry","category-debian","category-ubuntu"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6daft-2GP","jetpack-related-posts":[{"id":6401,"url":"https:\/\/monodes.com\/predaelli\/2020\/02\/23\/debian-programmi-da-stable-testing-unstable-ed-anche-experimental-senza-traumi\/","url_meta":{"origin":10343,"position":0},"title":"Debian: programmi da stable, testing, unstable ed anche experimental senza traumi","author":"Paolo Redaelli","date":"2020-02-23","format":false,"excerpt":"Nell'uso quotidiano dei computer capita spesso di avere la necessit\u00e0 di una base stabile ed allo stesso tempo di utilizzare versioni recenti, molto recenti o anche \"beta\/alpha\/sperimentali\" di alcuni specifici programmi. Gli utenti di Debian e quindi di tutte le derivate a partire da Ubuntu non sono da meno, anzi!\u2026","rel":"","context":"In &quot;Debian&quot;","block_context":{"text":"Debian","link":"https:\/\/monodes.com\/predaelli\/category\/debian\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2020\/02\/system-software-install.png?fit=256%2C256&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":5109,"url":"https:\/\/monodes.com\/predaelli\/2019\/01\/07\/stable-yet-experimental\/","url_meta":{"origin":10343,"position":1},"title":"Stable yet experimental","author":"Paolo Redaelli","date":"2019-01-07","format":false,"excerpt":"This tutorial is written for Django 2.1, which supports Python 3.5 and later From: Writing your first Django app, part 1 | Django documentation | Django I couldn't find Djiango 2 in my CentOS box. Of course, it's meant to use only rock-stable versions, I told myself. I tought to\u2026","rel":"","context":"In &quot;Senza categoria&quot;","block_context":{"text":"Senza categoria","link":"https:\/\/monodes.com\/predaelli\/category\/senza-categoria\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":11263,"url":"https:\/\/monodes.com\/predaelli\/2024\/01\/27\/firefox-is-finally-providing-deb-package-for-debian-and-ubuntu-users\/","url_meta":{"origin":10343,"position":2},"title":"Firefox is Finally Providing Deb Package for Debian and Ubuntu Users","author":"Paolo Redaelli","date":"2024-01-27","format":false,"excerpt":"Mozilla Firefox has a new native package available for Linux. Source: Ah, Snap! Firefox is Finally Providing Deb Package for Debian and Ubuntu Users","rel":"","context":"In &quot;Software Libero&quot;","block_context":{"text":"Software Libero","link":"https:\/\/monodes.com\/predaelli\/category\/software\/software-libero\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":10621,"url":"https:\/\/monodes.com\/predaelli\/2023\/07\/14\/ubuntu-i-dont-know-you\/","url_meta":{"origin":10343,"position":3},"title":"Ubuntu? I don&#8217;t know you!","author":"Paolo Redaelli","date":"2023-07-14","format":"status","excerpt":"Ubuntu 23.10 Planning To Ship With The Linux 6.5 Kernel. Sorry Ubuntu, I don't like you anymore, since you decided that your New Software App Will Demote DEBs\u2026 I'll keep using Debian, thanks\u2026","rel":"","context":"In &quot;Debian&quot;","block_context":{"text":"Debian","link":"https:\/\/monodes.com\/predaelli\/category\/debian\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":6409,"url":"https:\/\/monodes.com\/predaelli\/2020\/01\/01\/6409\/","url_meta":{"origin":10343,"position":4},"title":"Accidenti. Avevo quasi finito un\u2026","author":"Paolo Redaelli","date":"2020-01-01","format":"status","excerpt":"Accidenti. Avevo quasi finito un piccolo pezzo a commento di quello di Matteo Galacci.it sull'uso del pinning in Debian. Ma non lo trovo pi\u00f9. Accidenti, doppio accidenti, triplo accidenti (a proposito, stupenda questa reclam\u00e8 a tema Wacky Racers della Peugeot). Mi toccher\u00e0 riscriverlo. Accidenti a me che ho usato il\u2026","rel":"","context":"In &quot;Senza categoria&quot;","block_context":{"text":"Senza categoria","link":"https:\/\/monodes.com\/predaelli\/category\/senza-categoria\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":392,"url":"https:\/\/monodes.com\/predaelli\/2015\/06\/19\/big-g-or-big-brother\/","url_meta":{"origin":10343,"position":5},"title":"Big G or Big Brother?","author":"Paolo Redaelli","date":"2015-06-19","format":false,"excerpt":"\u00a0Google Criticized For 'Opaque' Audio-Listening Binary In Debian Chromium (source Slashdot): Debian, mother of Ubuntu, a major player in the software Libre world always required to have access to the sources of the programs they distribute1, especially in web-browsers. I'm not surprised to read this. I do not use proprietary\u2026","rel":"","context":"In &quot;Senza categoria&quot;","block_context":{"text":"Senza categoria","link":"https:\/\/monodes.com\/predaelli\/category\/senza-categoria\/"},"img":{"alt_text":"1000px-Chromium_11_Logo.svg","src":"https:\/\/i0.wp.com\/monodes.com\/predaelli\/wp-content\/uploads\/sites\/4\/2015\/06\/1000px-Chromium_11_Logo.svg_-150x1501.png?resize=350%2C200","width":350,"height":200},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts\/10343","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/comments?post=10343"}],"version-history":[{"count":0,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts\/10343\/revisions"}],"wp:attachment":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/media?parent=10343"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/categories?post=10343"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/tags?post=10343"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}