<?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: Jan Keromnes</title>
    <description>The latest articles on DEV Community by Jan Keromnes (@jankeromnes).</description>
    <link>https://dev.to/jankeromnes</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%2F146132%2F6c6592cb-e2fd-4762-86c5-ae3f032e4aaf.jpeg</url>
      <title>DEV Community: Jan Keromnes</title>
      <link>https://dev.to/jankeromnes</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jankeromnes"/>
    <language>en</language>
    <item>
      <title>Gitpod ❤️ Homebrew</title>
      <dc:creator>Jan Keromnes</dc:creator>
      <pubDate>Fri, 10 Jan 2020 09:28:45 +0000</pubDate>
      <link>https://dev.to/jankeromnes/gitpod-homebrew-ld9</link>
      <guid>https://dev.to/jankeromnes/gitpod-homebrew-ld9</guid>
      <description>&lt;p&gt;Are you tired of &lt;strong&gt;apt-get&lt;/strong&gt;? Can't use &lt;strong&gt;sudo&lt;/strong&gt; right now? …&lt;/p&gt;

&lt;h2&gt;
  
  
  You can now '&lt;strong&gt;brew install anything&lt;/strong&gt;' in Gitpod! 🎉
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;✓ Easily install any Linux tool or package with one command&lt;/li&gt;
&lt;li&gt;✓ Doesn't require &lt;code&gt;sudo&lt;/code&gt; permission&lt;/li&gt;
&lt;li&gt;✓ Works in your &lt;a href="https://www.gitpod.io/docs/42_config_docker/"&gt;.gitpod.Dockerfile&lt;/a&gt; or directly in Gitpod's Terminal&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you use a Mac, or have friends who use a Mac, you've probably heard of the trusty &lt;a href="https://brew.sh/"&gt;brew&lt;/a&gt; command which allows you to install pretty much any software, from &lt;code&gt;git&lt;/code&gt; to &lt;code&gt;clang&lt;/code&gt; to &lt;code&gt;htop&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Homebrew is quite convenient, and its packages are very well maintained: You'll usually get the latest stable version of any tool (e.g. Git &lt;code&gt;2.24.1&lt;/code&gt;) while other package managers can typically lag several versions behind (e.g. Ubuntu 18.04 only gives you Git &lt;code&gt;2.17.1&lt;/code&gt; by default).&lt;/p&gt;

&lt;p&gt;What you may not necessarily know is that Homebrew now works on Linux too (it was originally announced as "Linuxbrew", but now it's just called &lt;a href="https://docs.brew.sh/Homebrew-on-Linux"&gt;Homebrew on Linux&lt;/a&gt;). This got us pretty excited, because we saw it as an opportunity for developers to easily install any software package in Gitpod, without needing to set up a Dockerfile and then fire up another workspace to test it. With Homebrew you can simply run &lt;code&gt;brew install z&lt;/code&gt; and get going!&lt;/p&gt;

&lt;p&gt;We've pre-installed &lt;code&gt;brew&lt;/code&gt; for all Gitpod workspaces (using &lt;a href="https://github.com/gitpod-io/workspace-images/blob/d353ffe08c602095a8f3df7d690934c25643a6ca/full/Dockerfile#L104-L107"&gt;workspace-full&lt;/a&gt;) and now that we've played with it for a while and are happy with the experience, we're excited to announce it so that you can try it too:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Just open any repository in Gitpod (e.g. the &lt;a href="https://gitpod.io/#https://github.com/gitpod-io/spring-petclinic"&gt;Spring PetClinic&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;Try running &lt;code&gt;brew install fzf&lt;/code&gt; (this should give you the awesome &lt;a href="https://github.com/junegunn/fzf"&gt;fzf&lt;/a&gt; tool)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--4-rNaits--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://github.com/gitpod-io/website/raw/master/src/blog/brew/homebrew-in-gitpod.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--4-rNaits--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://github.com/gitpod-io/website/raw/master/src/blog/brew/homebrew-in-gitpod.png" alt="Homebrew in Gitpod screenshot"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here are a couple details to be aware of:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Packages installed with &lt;code&gt;brew&lt;/code&gt; have a low priority in the &lt;code&gt;$PATH&lt;/code&gt;. This means that if you &lt;code&gt;brew install&lt;/code&gt; a package that already exists in Gitpod, you'll just continue using the old package. If you don't like that, simply &lt;code&gt;apt-get remove&lt;/code&gt; the old package in your &lt;a href="https://www.gitpod.io/docs/42_config_docker/"&gt;.gitpod.Dockerfile&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;brew&lt;/code&gt; installs everything under &lt;code&gt;/home/linuxbrew/&lt;/code&gt;, but Gitpod only backs up your Docker image plus everything inside &lt;code&gt;/workspace/&lt;/code&gt;. This means that if you &lt;code&gt;brew install fzf&lt;/code&gt; in a Gitpod terminal, and then your workspace stops running, when you restart it later the package &lt;code&gt;fzf&lt;/code&gt; will be gone. If that's a problem, simply move the &lt;code&gt;brew install fzf&lt;/code&gt; command into your &lt;a href="https://www.gitpod.io/docs/42_config_docker/"&gt;.gitpod.Dockerfile&lt;/a&gt; to make it permanent.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We hope this feature makes you as happy as it made us! Please share any &lt;a href="https://community.gitpod.io/"&gt;feedback, thoughts&lt;/a&gt; or &lt;a href="https://github.com/gitpod-io/gitpod/issues/new/choose"&gt;bugs&lt;/a&gt; you found.&lt;/p&gt;

</description>
      <category>gitpod</category>
      <category>homebrew</category>
      <category>linuxbrew</category>
    </item>
  </channel>
</rss>
