{"id":1783,"date":"2023-09-09T17:32:52","date_gmt":"2023-09-09T15:32:52","guid":{"rendered":"https:\/\/linux-bibel.at\/?p=1783"},"modified":"2023-09-09T17:32:54","modified_gmt":"2023-09-09T15:32:54","slug":"guix-pakete-von-gnu-ganz-einfach-installieren","status":"publish","type":"post","link":"https:\/\/linux-bibel.at\/index.php\/2023\/09\/09\/guix-pakete-von-gnu-ganz-einfach-installieren\/","title":{"rendered":"Guix &#8211; Pakete von GNU ganz einfach installieren"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">GNU (<em><strong>G<\/strong>NU is&nbsp;<strong>N<\/strong>ot&nbsp;<strong>U<\/strong>NIX<\/em>) ist nach dem Linux-Kernel selbst eine der gr\u00f6\u00dften Institutionen hinter Linux, und GNU selbst hat auch seine eigene Linux-Distribution &#8211; diese nennt sich GNU Guix.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Hinter Guix steckt die Paket-Verwaltung dieser Distribution, und diese l\u00e4sst sich auch auf jedem Linux-System installieren, auf dem Systemd oder Init als Init-System l\u00e4uft &#8211; also fast auf jeder bekannten Linux-Distribution.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Guix ist nicht nur einfach eine weitere Paket-Verwaltung, die auf die Repositorys der jeweiligen Distribution zugreift, sondern sie greift eben auf die Pakete von GNU Guix zu. Dies bedeutet, Sie k\u00f6nnen Software installieren, die es f\u00fcr Ihre Distribution eigentlich gar nicht gibt. Diese wird vom restlichen System unabh\u00e4ngig installiert &#8211; sie gef\u00e4hrdet also die Paket-Verwaltung der Distribution nicht.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u00dcber diese Paket-Verwaltung kann anschlie\u00dfend jeder normale Benutzer Guix-Pakete aus der GNU-Guix-Datenbank installieren &#8211; ohne administrative Rechte.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Guix installieren<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Gerade gesehen &#8211; GNU Guix findet sich inzwischen auch in den Paket-Quellen von Debian, l\u00e4sst sich also ganz einfach \u00fcber die\u00a0Paket-Verwaltung\u00a0durch das Paket &#8222;<strong>guix<\/strong>&#8220; installieren.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Die Installation erfolgt am\u00a0Terminal, erst einmal ohne administrative Rechte &#8211; wir wechseln zuerst in das tempor\u00e4re Verzeichnis:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/tmp\/<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Wir laden das Script zur Installation herunter:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wget https:\/\/git.savannah.gnu.org\/cgit\/guix.git\/plain\/etc\/guix-install.sh<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Jetzt machen wir das Script ausf\u00fchrbar:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>chmod +x guix-install.sh<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Anschlie\u00dfend installieren wir Guix mit\u00a0administrativen Rechten\u00a0(<strong><em>als\u00a0root<\/em><\/strong><em>\u00a0oder eben sudo<\/em>):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.\/guix-install.sh<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/guix-1024x576.jpg\" alt=\"\" class=\"wp-image-1784\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/guix-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/guix-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/guix-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/guix-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/guix.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Sie best\u00e4tigen die Nachfragen mit Eingabe &#8211; dies sind etwa vier oder f\u00fcnf Nachfragen. Jetzt melden Sie sich mit:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>exit<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">ab, anschlie\u00dfend k\u00f6nnen Sie auch als normaler Benutzer weiterarbeiten. Kontrollieren Sie, ob die Software in der versteckten Datei (<em>in Ihrem Home-Verzeichnis<\/em>) &#8222;<strong>.bashrc<\/strong>&#8220; oder &#8222;<strong>.zshrc<\/strong>&#8220; folgenden Code angeh\u00e4ngt hat &#8211; ist dies nicht der Fall, holen Sie dies manuell nach.:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Automatically added by the Guix install script.\nif &#91; -n \"$GUIX_ENVIRONMENT\" ]; then\n    if &#91;&#91; $PS1 =~ (.*)\"\\\\$\" ]]; then\n        PS1=\"${BASH_REMATCH&#91;1]} &#91;env]\\\\\\$ \"\n    fi\nfi<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Die folgende Zeile f\u00fcgen Sie an und ersetzen &#8222;<strong>NUTZERNAME<\/strong>&#8220; durch Ihren eigenen:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>export PATH=$PATH:\/home\/NUTZERNAME\/.guix-profile\/bin<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Jetzt richten wir die Software ein mit folgenden Befehlen &#8211; wir installieren die Pakete zur Lokalisierung:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>guix install glibc-locales<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/guix-1-1024x576.jpg\" alt=\"\" class=\"wp-image-1785\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/guix-1-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/guix-1-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/guix-1-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/guix-1-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/guix-1.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Jetzt richten wir die Lokalisierung ein:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>export GUIX_LOCPATH=$HOME\/.guix-profile\/lib\/locale<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Jetzt installieren wir noch n\u00f6tige Abh\u00e4ngigkeiten f\u00fcr zus\u00e4tzlichen Anwendungen &#8211; vor allem Schriften:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>guix install gs-fonts\nguix install font-dejavu\nguix install font-gnu-freefont\nguix install fontconfig\nguix install nss-certs\nfc-cache -rv<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Um Guix sp\u00e4ter zu aktualisieren, starten Sie folgenden Befehl mit administrativen Rechten:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>guix pull\nsystemctl restart guix-daemon.service<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Software mit Guix verwalten<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Erst einmal &#8211; Sie finden unter\u00a0<a rel=\"noreferrer noopener\" href=\"https:\/\/guix.gnu.org\/de\/packages\/\" target=\"_blank\">Guix &#8211; Pakete<\/a>\u00a0die vollst\u00e4ndige Datenbank an Software von GNU Guix. Die Pakete lassen sich nat\u00fcrlich mittels Guix installieren (derzeit \u00fcber 20.000):<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/guix-2-1024x576.jpg\" alt=\"\" class=\"wp-image-1786\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/guix-2-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/guix-2-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/guix-2-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/guix-2-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/guix-2.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Beispielsweise habe ich dort das Paket &#8222;<strong>instantmusic<\/strong>&#8220; gefunden &#8211; zum Download von Videos von YouTube im MP3-Format. Dieses Paket m\u00f6chte ich jetzt installieren. Die Syntax:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>guix install paket-name<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Also:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>guix install instantmusic<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Eventuelle Abh\u00e4ngigkeiten installiert Guix automatisch:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/guix-3-1024x576.jpg\" alt=\"\" class=\"wp-image-1787\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/guix-3-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/guix-3-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/guix-3-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/guix-3-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/guix-3.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Statt &#8222;<strong>install<\/strong>&#8220; k\u00f6nnen Sie, wie etwa unter Debian gewohnt, auch die Option &#8222;<strong>-i<\/strong>&#8220; nutzen. Also etwa:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>guix -i gimp<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Zum Suchen von Software nutzen Sie die Option &#8222;<strong>search<\/strong>&#8220; oder auch &#8222;<strong>-s<\/strong>&#8222;. Um ein Paket zu deinstallieren, die Option &#8222;<strong>remove<\/strong>&#8220; oder &#8222;<strong>-r<\/strong>&#8222;. Mittels &#8222;<strong>show<\/strong>&#8220; lassen Sie sich Informationen zu einem Paket anzeigen und mit &#8222;<strong>upgrade<\/strong>&#8220; oder auch &#8222;<strong>-u<\/strong>&#8220; aktualisieren Sie ein Paket.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Mittels:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>guix package --upgrade .<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">aktualisieren Sie alle installierten Pakete. Die installierten Pakete finden Sie in Ihrem Home-Verzeichnis unter &#8222;<em>\/guix-profile\/bin\/<\/em>&#8222;:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/guix-4-1024x576.jpg\" alt=\"\" class=\"wp-image-1788\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/guix-4-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/guix-4-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/guix-4-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/guix-4-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/guix-4.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">GNU Guix beinhaltet in seiner Datenbank so einige Pakete, die es etwa unter Debian oder anderen Distributionen gar nicht gibt oder die man selbst kompilieren m\u00fcsste. Einige nat\u00fcrlich auch in aktuelleren Versionen.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Zudem l\u00e4sst es Guix zu, verschiedene Versionen von Software zu installieren, zu einer \u00e4lteren Version zur\u00fcckzuwechseln und vieles mehr.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Die komplette Dokumentation finden Sie unter&nbsp;<a href=\"https:\/\/guix.gnu.org\/manual\/de\/html_node\/Einfuhrung.html#Einf_00fchrung\" target=\"_blank\" rel=\"noreferrer noopener\">GNU Guix \/ Guix<\/a>.<\/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=\"1783\" 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=\"1783\" 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\"><\/span>\r\n<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>GNU (GNU is&nbsp;Not&nbsp;UNIX) ist nach dem Linux-Kernel selbst eine der gr\u00f6\u00dften Institutionen hinter Linux, und GNU selbst hat auch seine eigene Linux-Distribution &#8211; diese nennt sich GNU Guix. Hinter Guix steckt die Paket-Verwaltung dieser Distribution, und diese l\u00e4sst sich auch auf jedem Linux-System installieren, auf dem Systemd oder Init als Init-System l\u00e4uft &#8211; also fast [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1786,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[64],"tags":[65],"class_list":["post-1783","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software-verwalten","tag-software-verwalten"],"_links":{"self":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/1783","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=1783"}],"version-history":[{"count":1,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/1783\/revisions"}],"predecessor-version":[{"id":1789,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/1783\/revisions\/1789"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media\/1786"}],"wp:attachment":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media?parent=1783"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/categories?post=1783"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/tags?post=1783"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}