{"id":756,"date":"2023-09-03T12:24:00","date_gmt":"2023-09-03T10:24:00","guid":{"rendered":"https:\/\/linux-bibel.at\/?p=756"},"modified":"2023-09-03T12:24:02","modified_gmt":"2023-09-03T10:24:02","slug":"debian-pinning-aktuellere-software-auf-debian-stable","status":"publish","type":"post","link":"https:\/\/linux-bibel.at\/index.php\/2023\/09\/03\/debian-pinning-aktuellere-software-auf-debian-stable\/","title":{"rendered":"Debian Pinning &#8211; Aktuellere Software auf Debian Stable"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Noch aktuellere Software als mit den Debian Backports erhalten Sie mittels Pinning. Mit den Backports beziehen Sie nur Software aus Debian Testing &#8211; also dem kommenden stabilen Debian, mittels Pinning k\u00f6nnen Sie Software aus Testing beziehen &#8211; hier jedoch nicht nur auf Stable zur\u00fcckportierte Software, sondern jede. Aber noch aktuellere Software k\u00f6nnen Sie mit Pinning aus Debian Unstable bekommen.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Es ist recht einfach zu nutzen, muss jedoch erst kurz konfiguriert werden.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Pinning aktivieren<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Als Erstes \u00f6ffnen Sie mit administrativen Rechten auf dem Terminal die Datei &#8222;<em>\/etc\/apt\/sources.list<\/em>&#8222;:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nano \/etc\/apt\/sources.list<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Hier f\u00fcgen Sie nun folgende Zeile hinzu:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>deb http:\/\/ftp.us.debian.org\/debian testing main contrib non-free<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">M\u00f6chten Sie statt Debian Testing Debian Unstable nutzen, ersetzen Sie &#8222;testing&#8220; durch &#8222;unstable&#8220;, alternativ k\u00f6nnen Sie auch beide Repositorys nutzen:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>deb http:\/\/ftp.us.debian.org\/debian testing main contrib non-free\ndeb http:\/\/ftp.us.debian.org\/debian unstable main contrib non-free<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Nun speichern Sie die Datei mit\u00a0<strong><kbd>Strg+o<\/kbd><\/strong>, best\u00e4tigen mit\u00a0<strong><kbd>Eingabe<\/kbd><\/strong>\u00a0und schlie\u00dfen den Editor mit\u00a0<strong><kbd>Strg+x<\/kbd><\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Anschlie\u00dfend erstellen Sie die Datei &#8222;<em>\/etc\/apt\/preferences<\/em>&#8222;:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nano \/etc\/apt\/preferences<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Diese Datei bef\u00fcllen Sie nun wie folgt:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Package: *\nPin: release n=testing\nPin-Priority: 900<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Nutzen Sie statt Testing Unstable, ersetzen Sie &#8222;<strong>testing<\/strong>&#8220; durch &#8222;<strong>unstable<\/strong>&#8222;, nutzen Sie beide Repositorys:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Package: *\nPin: release n=testing\nPin-Priority: 900\n\nPackage: *\nPin: release n=unstable\nPin-Priority: 900<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Die Zahl &#8211; im Beispiel &#8222;<strong>900<\/strong>&#8220; &#8211; regelt, welche Software Debian aus dem jeweiligen Repository installiert \/ aktualisiert. &#8222;<strong>900<\/strong>&#8220; w\u00fcrde gleich einmal das komplette System mit der aktuellsten Software &#8211; in diesem Fall also aus Unstable aktualisieren. Dies ist nicht unbedingt erw\u00fcnscht. Je niedriger die Zahl, desto weniger wird automatisch aktualisiert. Mit &#8222;<strong>1<\/strong>&#8220; w\u00fcrde beispielsweise nur aktualisiert, was Sie auch wirklich aus Testing oder Unstable installiert haben. Dies sollte also Ihre Vorgabe sein.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Speichern und schlie\u00dfen Sie die Datei mit\u00a0<strong><kbd>Strg+o<\/kbd><\/strong>,\u00a0<strong><kbd>Eingabe<\/kbd><\/strong>\u00a0und\u00a0<strong><kbd>Strg+x<\/kbd><\/strong>, aktualisieren die Paket-Quellen:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt update<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Software per Pinning installieren<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Software per Pinning installieren Sie nun auf dem Terminal durch den Befehl:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt -t testing install paket-name<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Oder eben:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt -t unstable install paket-name<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Ben\u00f6tigte Abh\u00e4ngigkeiten werden automatisch aus dem jeweiligen Repository bezogen und nat\u00fcrlich auch mit dem System aktualisiert.<\/p>\n<div class=\"pld-like-dislike-wrap pld-custom\">\r\n    <div class=\"pld-like-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-like-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir\" data-post-id=\"756\" data-trigger-type=\"like\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Hoch.png\" alt=\"Gef\u00e4llt mir\" \/>\r\n            <\/a>\r\n    <span class=\"pld-like-count-wrap pld-count-wrap\">1    <\/span>\r\n<\/div><div class=\"pld-dislike-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-dislike-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir nicht\" data-post-id=\"756\" data-trigger-type=\"dislike\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Runter.png\" alt=\"Gef\u00e4llt mir nicht\" \/>\r\n            <\/a>\r\n    <span class=\"pld-dislike-count-wrap pld-count-wrap\">2<\/span>\r\n<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Noch aktuellere Software als mit den Debian Backports erhalten Sie mittels Pinning. Mit den Backports beziehen Sie nur Software aus Debian Testing &#8211; also dem kommenden stabilen Debian, mittels Pinning k\u00f6nnen Sie Software aus Testing beziehen &#8211; hier jedoch nicht nur auf Stable zur\u00fcckportierte Software, sondern jede. Aber noch aktuellere Software k\u00f6nnen Sie mit Pinning [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":61,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[64,4],"tags":[12,7,65,6],"class_list":["post-756","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software-verwalten","category-terminal","tag-kommandozeile","tag-shell","tag-software-verwalten","tag-terminal"],"_links":{"self":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/756","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/comments?post=756"}],"version-history":[{"count":1,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/756\/revisions"}],"predecessor-version":[{"id":757,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/756\/revisions\/757"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media\/61"}],"wp:attachment":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media?parent=756"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/categories?post=756"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/tags?post=756"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}