{"id":12420,"date":"2021-11-28T18:32:19","date_gmt":"2021-11-28T18:32:19","guid":{"rendered":"https:\/\/linuxways.net\/?p=12420"},"modified":"2021-11-28T18:32:19","modified_gmt":"2021-11-28T18:32:19","slug":"how-to-install-homebrew-on-ubuntu-20-04-lts","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/ubuntu\/how-to-install-homebrew-on-ubuntu-20-04-lts\/","title":{"rendered":"How to Install Homebrew on Ubuntu 20.04 LTS"},"content":{"rendered":"<p>Homebrew is a widely used package manager in Mac systems. Additionally, you can install Homebrew on Linux and perform package management tasks such as installing and upgrading software packages. HOmebrew cask provides support for quick installation of application such as VLC, Google Chrome and so much more.<\/p>\n<p><strong>In this guide, we <\/strong><\/p>\n<p>Now, let us walk you through the installation of Homebrew on Ubuntu 20.04.<\/p>\n<h2><strong>Step 1: Update the system &amp; install dependencies<\/strong><\/h2>\n<p>Let\u2019s hit the ground running. To start off, update the package lists.<\/p>\n<pre><strong>$ sudo apt update<\/strong><\/pre>\n<p>Once the update of the package index is complete, install the <strong>build-essential <\/strong>meta-package. This provides a link to several other packages that are going to be installed on your system as dependencies.<\/p>\n<pre><strong>$ sudo apt install build-essential<\/strong><\/pre>\n<p>Next, install the git version control package.<\/p>\n<pre><strong>$ sudo apt install git<\/strong><\/pre>\n<p>Great, we are all good with the dependencies, let\u2019s now proceed and install HomeBrew.<\/p>\n<h2><strong>Step 2: Download and run the Homebrew installation script<\/strong><\/h2>\n<p>There is a prebuilt shell script that automates the installation of Homebrew. So, execute the following command to download and run the shell script.<\/p>\n<pre><strong>$ \/bin\/bash -c \"$(curl -fsSL https:\/\/raw.githubusercontent.com\/Homebrew\/install\/HEAD\/install.sh)\"<\/strong><\/pre>\n<p>The execution of the script creates a <strong>linuxbrew <\/strong>directory in the home directory that contains Homebrew settings, libraries, configuration files, and other crucial files.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"937\" height=\"259\" class=\"wp-image-12421\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-491.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-491.png 937w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-491-300x83.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-491-768x212.png 768w\" sizes=\"auto, (max-width: 937px) 100vw, 937px\" \/><\/p>\n<p>The download and execution of the script takes a while, and therefore, some patience will do.<\/p>\n<h2><strong>Step 3: Add Homebrew to your PATH <\/strong><\/h2>\n<p>Once the command is fully executed, Some additional steps are required to add Homebrew to your PATH. Some steps will be provided for you to guide you on how to accomplish this.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"838\" height=\"288\" class=\"wp-image-12422\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-492.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-492.png 838w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-492-300x103.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-492-768x264.png 768w\" sizes=\"auto, (max-width: 838px) 100vw, 838px\" \/><\/p>\n<p>So, in my case I executed the commands as indicated:<\/p>\n<pre><strong>$ echo \u2018eval \u201c$(\/home\/linuxbrew\/.linuxbrew\/bin\/brew shellenv)\u201d\u2019 &gt;&gt; \/home\/winnie\/.profile<\/strong><\/pre>\n<pre><strong>$ eval \u201c$(\/home\/linuxbrew\/.linuxbrew\/bin\/brew shellenv)\u201d<\/strong><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"903\" height=\"134\" class=\"wp-image-12423\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-493.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-493.png 903w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-493-300x45.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-493-768x114.png 768w\" sizes=\"auto, (max-width: 903px) 100vw, 903px\" \/><\/p>\n<p>At this juncture, Homebrew is successfully installed. You can confirm the version of Brew installed as follows.<\/p>\n<pre><strong>$ brew --version<\/strong><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"137\" class=\"wp-image-12424\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-494.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-494.png 700w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-494-300x59.png 300w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/p>\n<p>Let\u2019s now give Homebrew a try and see if we can install some packages.<\/p>\n<h2><strong>Step 4: Confirm that Homebrew works<\/strong><\/h2>\n<p>To verify that Homebrew is working as expected, run the command:<\/p>\n<pre><strong>$ brew doctor<\/strong><\/pre>\n<p>You will get confirmation that your system is ready to use brew.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"603\" height=\"99\" class=\"wp-image-12425\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-495.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-495.png 603w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-495-300x49.png 300w\" sizes=\"auto, (max-width: 603px) 100vw, 603px\" \/><\/p>\n<p>Now, you can use Homebrew to install software using the syntax:<\/p>\n<pre><strong>$ brew install package-name<\/strong><\/pre>\n<p>For example, to install Python3, run the command:<\/p>\n<pre><strong>$ brew install python3<\/strong><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"939\" height=\"216\" class=\"wp-image-12426\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-496.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-496.png 939w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-496-300x69.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-496-768x177.png 768w\" sizes=\"auto, (max-width: 939px) 100vw, 939px\" \/><\/p>\n<p>When the installation of Python3 is complete, verify the version installed as follows:<\/p>\n<pre><strong>$ python3 -V<\/strong><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"528\" height=\"111\" class=\"wp-image-12427\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-497.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-497.png 528w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-497-300x63.png 300w\" sizes=\"auto, (max-width: 528px) 100vw, 528px\" \/><\/p>\n<p>Perfect! We have managed to successfully install and configure Homebrew on Ubuntu 20.04. We trust that this guide was able to help you with the installation of Homebrew on Ubuntu 20.04<\/p>","protected":false},"excerpt":{"rendered":"<p>Homebrew is a widely used package manager in Mac systems. Additionally, you can install Homebrew on Linux and perform package management tasks such as installing and upgrading software&hellip;<\/p>","protected":false},"author":1,"featured_media":12520,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[703,100],"class_list":["post-12420","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu","tag-homebrew","tag-ubuntu-20-04"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/12420","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=12420"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/12420\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/12520"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=12420"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=12420"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=12420"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}