<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: rageshchalil</title>
    <description>The latest articles on DEV Community by rageshchalil (@rageshchalil).</description>
    <link>https://dev.to/rageshchalil</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F132139%2F644a7cce-ad48-4581-b162-444daaa2535e.png</url>
      <title>DEV Community: rageshchalil</title>
      <link>https://dev.to/rageshchalil</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rageshchalil"/>
    <language>en</language>
    <item>
      <title>Install homebrew on MacOS Monterey - Apple M2</title>
      <dc:creator>rageshchalil</dc:creator>
      <pubDate>Tue, 27 Sep 2022 08:20:34 +0000</pubDate>
      <link>https://dev.to/rageshchalil/install-homebrew-on-macos-monterey-apple-m2-1bio</link>
      <guid>https://dev.to/rageshchalil/install-homebrew-on-macos-monterey-apple-m2-1bio</guid>
      <description>&lt;p&gt;When you begin using a MacOS most life-saving package manager will always be &lt;a href="https://en.wikipedia.org/wiki/Homebrew_(package_manager)"&gt;Homebrew&lt;/a&gt;. As it is not installed by default on a Mac laptop, the below documentation will go through simple steps to install and configure it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is Homebrew?
&lt;/h2&gt;

&lt;p&gt;Homebrew is an &lt;a href="https://en.wikipedia.org/wiki/Open-source_software"&gt;opensource&lt;/a&gt; package management system for MacOS(also Linux).&lt;/p&gt;

&lt;h2&gt;
  
  
  What has changed?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Apple replaced the default &lt;a href="https://en.wikipedia.org/wiki/Bash_(Unix_shell)"&gt;bash&lt;/a&gt; terminal to &lt;a href="https://en.wikipedia.org/wiki/Z_shell"&gt;zsh&lt;/a&gt; in macOs Catalina.&lt;/li&gt;
&lt;li&gt;The installation path of homebrew on Apple silicon (M1 chip and above) is &lt;code&gt;/opt/&lt;/code&gt; which is not part of default $PATH. The earlier versions would install under the path &lt;code&gt;/usr/local/&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Install Homebrew
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Open terminal and run,
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Authenticate when prompted.&lt;/li&gt;
&lt;li&gt;Be patient...! (it might take 1 to 15 minutes to complete the installation)&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Set path in .zprofile
&lt;/h2&gt;

&lt;p&gt;Set environment for login shells by running below commands:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' &amp;gt;&amp;gt; /Users/&amp;lt;User&amp;gt;/.zprofile
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;Replace &lt;code&gt;&amp;lt;User&amp;gt;&lt;/code&gt; with your username&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;eval "$(/opt/homebrew/bin/brew shellenv)"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Test
&lt;/h2&gt;

&lt;p&gt;Run &lt;code&gt;brew help&lt;/code&gt; you should be able to see different options brew offers.&lt;/p&gt;

</description>
      <category>homebrew</category>
      <category>macos</category>
      <category>m2</category>
      <category>zsh</category>
    </item>
  </channel>
</rss>
