Skip to content
← Back to Community
Homebrew
Profile icon
RowanFromBJC

Hi!

This tutorial took awhile, i've been trying to figure this out for a long time.

Installing Homebrew

If you don't know, Homebrew is a package manager (like npm), written in ruby, for Mac OS X and Linux. Replit's VM is a Linux, but with a lot of restrictions. (no sudo, no root access, etc.)
To install it, type this in the terminal, or in a bash file:

mkdir homebrew && curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C homebrew

then this:

export PATH="$(pwd)/homebrew/bin:$PATH" && brew

Now, you can use Homebrew!
Note: run export PATH="$(pwd)/homebrew/bin:$PATH" whenever you want to use something.

Voters
Profile icon
HarveyJORDAN1
Profile icon
jinsedam
Profile icon
coding1001
Profile icon
programmeruser
Profile icon
RowanFromBJC
Comments
hotnewtop
Profile icon
programmeruser

That's not a bug, your repls are simply a collection of files that are run, ~/.bashrc is not saved.

Profile icon
RowanFromBJC

@programmeruser Ok, thanks!

Profile icon
StudioHawaii

@programmeruser you can actually install cowsay with brew by also running '''brew install cowsay'''

Profile icon
programmeruser

@StudioHawaii how is that related to my comment???

Profile icon
StudioHawaii

@programmeruser well its inconvenient using cowsay and repl making you reinstall every time

Profile icon
programmeruser

@StudioHawaii couldn't you just have said this on the main post??? and the nix packages are supposed to be cached anyways

Profile icon
StudioHawaii

@programmeruser I actually tryed to install homebrew on repl and it doesn't work

Profile icon
programmeruser

@StudioHawaii how does that relate to my comment?