{"id":23492,"date":"2026-05-17T09:59:37","date_gmt":"2026-05-17T07:59:37","guid":{"rendered":"https:\/\/linux-bibel.at\/?p=23492"},"modified":"2026-05-17T10:03:49","modified_gmt":"2026-05-17T08:03:49","slug":"die-aktuellste-version-von-rust-unter-linux-nutzen","status":"publish","type":"post","link":"https:\/\/linux-bibel.at\/index.php\/2026\/05\/17\/die-aktuellste-version-von-rust-unter-linux-nutzen\/","title":{"rendered":"Die aktuellste Version von Rust unter Linux nutzen"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Debian nutzt stabile, aber hin und wieder etwas veraltete Software &#8211; in meinem Beispiel Rust. M\u00f6chte ich jetzt eine aktuellere Software basierend auf Rust installieren, als Rust unter Debian zul\u00e4sst &#8211; schlecht, die Installation funktioniert nicht.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Nun, man kann sich auch unter Debian die aktuellste Rust-Version installieren und aktuell halten, mit Rustup.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Rustup installieren<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Unter Debian, Ubuntu und Co. deinstalliert man erst einmal die installierten Debian-Pakete, nat\u00fcrlich als root am Terminal:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt remove cargo rustc<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Anschlie\u00dfend l\u00e4dt man sich als normaler Benutzer am Terminal die offizielle Installationsroutine herunter:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>curl --proto '=https' --tlsv1.2 -sSf https:\/\/sh.rustup.rs | sh<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Das Script wird heruntergeladen und die Installation automatisch gestartet:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/05\/rustup.jpg\" rel=\"lightbox-0\"><img loading=\"lazy\" decoding=\"async\" width=\"716\" height=\"646\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/05\/rustup.jpg\" alt=\"\" class=\"wp-image-23493\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/05\/rustup.jpg 716w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/05\/rustup-150x135.jpg 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/05\/rustup-300x271.jpg 300w\" sizes=\"auto, (max-width: 716px) 100vw, 716px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Wir best\u00e4tigen mit <kbd>Eingabe<\/kbd> &#8211; alternativ k\u00f6nnen Sie das Verzeichnis zur Installation mit <kbd>2<\/kbd> anpassen oder mit <kbd>3<\/kbd> abbrechen.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In die Shell-Konfiguration, etwa in die &#8222;<strong>.bashrc<\/strong>&#8220; oder &#8222;<strong>.zshrc<\/strong>&#8220; in unserem Home-Verzeichnis schreiben wir eine neue Zeile:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>source \"$HOME\/.cargo\/env\"<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Danach starten wir das Terminal neu, jetzt k\u00f6nnen wir die aktuelle Rust-Version anzeigen lassen:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>rustc --version<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/05\/rustup-1.jpg\" rel=\"lightbox-1\"><img loading=\"lazy\" decoding=\"async\" width=\"716\" height=\"268\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/05\/rustup-1.jpg\" alt=\"\" class=\"wp-image-23494\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/05\/rustup-1.jpg 716w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/05\/rustup-1-150x56.jpg 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2026\/05\/rustup-1-300x112.jpg 300w\" sizes=\"auto, (max-width: 716px) 100vw, 716px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Schon k\u00f6nnen wir auch die aktuellste Rust-Software mit <a href=\"https:\/\/linux-bibel.at\/index.php\/2023\/09\/03\/cargo-software-unter-linux-aus-dem-rust-repository-installieren\/\" data-type=\"post\" data-id=\"810\">Cargo<\/a> unter Debian installieren und nutzen.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Rust so installiert aktualisieren<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Haben Sie Rust auf diese Art installiert, aktualisieren Sie Rust als normaler Benutzer am Terminal mit folgendem Befehl:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>rustup update<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Debian nutzt stabile, aber hin und wieder etwas veraltete Software &#8211; in meinem Beispiel Rust. M\u00f6chte ich jetzt eine aktuellere Software basierend auf Rust installieren, als Rust unter Debian zul\u00e4sst &#8211; schlecht, die Installation funktioniert nicht. Nun, man kann sich auch unter Debian die aktuellste Rust-Version installieren und aktuell halten, mit Rustup. Rustup installieren Unter [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":23494,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[15],"class_list":["post-23492","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-system","tag-system"],"_links":{"self":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/23492","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=23492"}],"version-history":[{"count":2,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/23492\/revisions"}],"predecessor-version":[{"id":23497,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/23492\/revisions\/23497"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media\/23494"}],"wp:attachment":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media?parent=23492"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/categories?post=23492"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/tags?post=23492"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}