<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/homebrew-on-linux-bej9lbgay" -->

---
title: Homebrew on Linux | daily.dev
description: Homebrew is a package manager that can be used on Linux and Windows Subsystem for Linux (WSL) 2. It installs its own versions of glibc and gcc for older Linux...
canonical: https://daily.dev/posts/homebrew-on-linux-bej9lbgay
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Homebrew on Linux | daily.dev
og:description: Homebrew is a package manager that can be used on Linux and Windows Subsystem for Linux (WSL) 2. It installs its own versions of glibc and gcc for older Linux...
og:url: https://daily.dev/posts/homebrew-on-linux-bej9lbgay
og:image: https://api.daily.dev/og/posts/BeJ9LBgay.png
og:image:alt: Homebrew on Linux
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Homebrew on Linux

**[Community Picks](https://daily.dev/sources/community)** · 3 min read · 17 upvotes · 2 comments

## Summary

Homebrew is a package manager that can be used on Linux and Windows Subsystem for Linux (WSL) 2. It installs its own versions of glibc and gcc for older Linux distributions. The installation script installs Homebrew to /home/linuxbrew/.linuxbrew using sudo, and afterward, Homebrew does not use sudo. It is recommended to install Homebrew in the default prefix for better user experience. Some of the installation steps include adding Homebrew to your PATH and bash shell rcfile. Homebrew can be installed on ARM platforms, but they lack binary packages. WSL 1 may have issues running executables installed by Homebrew, and it is recommended to switch to WSL 2.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://docs.brew.sh/Homebrew-on-Linux>

## Community discussion

Top comments from developers on daily.dev.

**@andresousadotpt** · 1 upvotes

> Homebrew is amazing. Thanks for sharing, will be installing this on my WSL 2 😎

---

Tags: [#linux](https://daily.dev/tags/linux)

[View this post on daily.dev](https://daily.dev/posts/homebrew-on-linux-bej9lbgay)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Homebrew on Linux","url":"https://daily.dev/posts/homebrew-on-linux-bej9lbgay","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/homebrew-on-linux-bej9lbgay"},"datePublished":"2024-05-07T18:49:27.728Z","dateModified":"2024-05-09T08:22:04.995Z","description":"Homebrew is a package manager that can be used on Linux and Windows Subsystem for Linux (WSL) 2. It installs its own versions of glibc and gcc for older Linux...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/ef168cbbd499f86605a3d67318062ddc?_a=AQAEuiZ","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/ef168cbbd499f86605a3d67318062ddc?_a=AQAEuiZ","isAccessibleForFree":true,"articleSection":"Community Picks","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Community Picks","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1655817725/logos/community","url":"https://daily.dev/sources/community"},"commentCount":2,"discussionUrl":"https://daily.dev/posts/homebrew-on-linux-bej9lbgay","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":17},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":2}],"keywords":"linux","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Community Picks","item":"https://daily.dev/sources/community"},{"@type":"ListItem","position":3,"name":"Homebrew on Linux"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/homebrew-on-linux-bej9lbgay","comment":[{"@type":"Comment","text":"Homebrew is amazing. Thanks for sharing, will be installing this on my WSL 2 😎","datePublished":"2024-05-13T09:00:21.533Z","url":"https://daily.dev/posts/BeJ9LBgay#c-uZd9fdaWT","author":{"@type":"Person","name":"André Sousa","url":"https://daily.dev/andresousadotpt","image":"https://avatars.githubusercontent.com/u/62852511?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}}]}
```

