{"id":948,"date":"2023-09-03T19:38:46","date_gmt":"2023-09-03T17:38:46","guid":{"rendered":"https:\/\/linux-bibel.at\/?p=948"},"modified":"2023-09-03T19:38:47","modified_gmt":"2023-09-03T17:38:47","slug":"homebrew-zusaetzlicher-paket-manager-fuer-linux","status":"publish","type":"post","link":"https:\/\/linux-bibel.at\/index.php\/2023\/09\/03\/homebrew-zusaetzlicher-paket-manager-fuer-linux\/","title":{"rendered":"Homebrew &#8211; Zus\u00e4tzlicher Paket-Manager f\u00fcr Linux"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hin und wieder findet man &#8211; vor allem auf GitHub Software, die man sich gerne installieren m\u00f6chte. Diese findet sich jedoch nicht in der Paket-Verwaltung und auf GitHub findet sich nur der umst\u00e4ndlich zu installierende Quellcode &#8211; Kompilieren.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Dann findet sich aber hin und wieder auch gerne der Tipp, die Software via Brew zu installieren. Brew ist ein Paket-Manager f\u00fcr macOS auf dem\u00a0Terminal, dieser l\u00e4sst sich auch unter Linux nutzen &#8211; und Brew, unter Linux Homebrew ist einfach zu nutzen.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Homebrew installieren<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Zur Installation und Nutzung werden unter Linux die grundlegenden Entwicklungspakete installiert, unter auf Debian basierenden Linux-Distributionen gelingt dies ganz einfach \u00fcber die\u00a0Paket-Verwaltung\u00a0durch die Pakete &#8222;<strong>build-essential procps curl file git<\/strong>&#8222;.<br>Am einfachsten gelingt dies als\u00a0Administrator\u00a0am Terminal mit dem Befehl:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt install build-essential procps curl file git<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Anschlie\u00dfend wird Homebrew mit folgendem Befehl als normaler Nutzer installiert:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/bin\/bash -c \"$(curl -fsSL https:\/\/raw.githubusercontent.com\/Homebrew\/install\/HEAD\/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\/homebrew-1024x576.jpg\" alt=\"\" class=\"wp-image-949\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/homebrew-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/homebrew-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/homebrew-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/homebrew-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/homebrew.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Jetzt warten Sie einfach ab, bis die Software heruntergeladen und installiert wurde (<em>der Eingabeprompt ist wieder zu sehen<\/em>). Anschlie\u00dfend erhalten Sie die Meldung:<\/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\/homebre-1-1024x576.jpg\" alt=\"\" class=\"wp-image-950\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/homebre-1-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/homebre-1-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/homebre-1-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/homebre-1-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/homebre-1.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Kopieren Sie die beiden gezeigten Befehle &#8211; nach dem Beispiel oben &#8211; ersetzen Sie nat\u00fcrlich meinen Nutzernamen durch den Ihren:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>echo 'eval \"$(\/home\/robertg\/.linuxbrew\/bin\/brew shellenv)\"' &gt;&gt; \/home\/robertg\/.profile<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>eval \"$(\/home\/robertg\/.linuxbrew\/bin\/brew shellenv)\"<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Damit w\u00e4re die Installation von Homebrew erledigt.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Homebrew nutzen<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Sie nutzen die Software als normaler Benutzer am Terminal, die gew\u00fcnschte Software wird nur f\u00fcr Sie selbst installiert.<br>Jetzt nehmen wir ganz einfach ein Paket von GitHub &#8211; hier etwa\u00a0<a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/orf\/gping\" target=\"_blank\">Gping<\/a>:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"575\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/homebre-2-1024x575.jpg\" alt=\"\" class=\"wp-image-951\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/homebre-2-1024x575.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/homebre-2-300x168.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/homebre-2-768x431.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/homebre-2-1536x862.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/homebre-2.jpg 1918w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Die GitHub-Seite zeigt unter &#8222;<strong>Install \u2192 Homebrew<\/strong>&#8220; schon, was Sie tun m\u00fcssen &#8211; in diesem Fall gen\u00fcgt der Befehl:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>brew install gping<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Die Software l\u00e4dt alle ben\u00f6tigten Abh\u00e4ngigkeiten herunter und installiert diese, bei der ersten Nutzung sind dies einige Pakete mehr &#8211; es wird eine komplette Umgebung eingerichtet.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Installiert werden alle Pakete und Abh\u00e4ngigkeiten in Ihrem Home-Verzeichnis unter &#8222;<em>.linuxbrew<\/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\/homebre-3-1024x576.jpg\" alt=\"\" class=\"wp-image-952\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/homebre-3-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/homebre-3-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/homebre-3-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/homebre-3-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/homebre-3.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Sie brauchen sich keine Sorgen um das Kompilieren oder was auch immer machen, dies erledigt Homebrew:<\/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\/homebre-4-1024x576.jpg\" alt=\"\" class=\"wp-image-953\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/homebre-4-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/homebre-4-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/homebre-4-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/homebre-4-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/homebre-4.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Mittels Homebrew installierte Software aktualisieren Sie mit demselben Befehl wie zur Installation, installierte listen Sie mit dem Befehl:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>brew list<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">auf. Installierte Software deinstalliert man mittels:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>brew uninstall paket<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Grunds\u00e4tzlich installiert man sich mittels Homebrew eine macOS-Terminal-Umgebung, die unter Linux funktioniert wie Linux-Software.<\/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=\"948\" 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=\"948\" 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>Hin und wieder findet man &#8211; vor allem auf GitHub Software, die man sich gerne installieren m\u00f6chte. Diese findet sich jedoch nicht in der Paket-Verwaltung und auf GitHub findet sich nur der umst\u00e4ndlich zu installierende Quellcode &#8211; Kompilieren. Dann findet sich aber hin und wieder auch gerne der Tipp, die Software via Brew zu installieren. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":951,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[64],"tags":[65],"class_list":["post-948","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\/948","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=948"}],"version-history":[{"count":1,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/948\/revisions"}],"predecessor-version":[{"id":954,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/948\/revisions\/954"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media\/951"}],"wp:attachment":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media?parent=948"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/categories?post=948"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/tags?post=948"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}