0811.html 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Install Homebrew Package Manager on Linux</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <meta name="keywords" content="Home Lab,Home Lab Ideas,Install Guide,Application Manager,CLI Package Manager,Command Line Package Manager,How To Install Homebrew On Linux,Package Manager,Linux,Debian,Hombrew,Brew,Install Homebrew Package Manager,Homebrew Package Manager,How To,Tutorial,i12bretro">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Install Homebrew Package Manager on Linux">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <meta name="revised" content="04/17/2023 08:48:10 PM" />
  12. <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
  13. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  14. <script type="text/javascript" src="includes/js/steps.js"></script>
  15. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="gridContainer">
  19. <div class="topMargin"></div>
  20. <div id="listName" class="topMargin">
  21. <h1>Install Homebrew Package Manager on Linux</h1>
  22. </div>
  23. <div></div>
  24. <div id="content">
  25. <h2>What is Homebrew?</h2>
  26. <blockquote><em>[Homebrew is a] package manager for macOS or Linux. -<a href="https://brew.sh/" target="_blank">https://brew.sh/</a></em></blockquote>
  27. <ol>
  28. <li>Log into the Linux device</li>
  29. <li>Run the following commands in a terminal
  30. <div class="codeBlock"># update software repositories<br />
  31. sudo apt update<br />
  32. # install prerequisite packages<br />
  33. sudo apt install build-essential procps curl file git -y<br />
  34. # download and execute the brew installer<br />
  35. /bin/bash -c &quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&quot;<br />
  36. # press enter when prompted to continue<br />
  37. # copy homebrew to system path<br />
  38. test -d ~/.linuxbrew &amp;&amp; eval &quot;$(~/.linuxbrew/bin/brew shellenv)&quot;<br />
  39. test -d /home/linuxbrew/.linuxbrew &amp;&amp; eval &quot;$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)&quot;<br />
  40. test -r ~/.bash_profile &amp;&amp; echo &quot;eval \&quot;\$($(brew --prefix)/bin/brew shellenv)\&quot;&quot; &gt;&gt; ~/.bash_profile<br />
  41. echo &quot;eval \&quot;\$($(brew --prefix)/bin/brew shellenv)\&quot;&quot; &gt;&gt; ~/.profile</div>
  42. </li>
  43. <li>Homebrew is now installed and ready to be used</li>
  44. <li>To test Homebrew, continue with the following commands in the terminal
  45. <div class="codeBlock"># install the hello formulae<br />
  46. brew install hello<br />
  47. # run hello<br />
  48. hello</div>
  49. </li>
  50. </ol>
  51. <p>Source: <a href="https://docs.brew.sh/Homebrew-on-Linux" target="_blank">https://docs.brew.sh/Homebrew-on-Linux</a></p> </div>
  52. </div>
  53. </body>
  54. </html>