Skip to content

Instantly share code, notes, and snippets.

@kevinmichaelchen
Last active November 14, 2023 18:41
Show Gist options
  • Save kevinmichaelchen/3928825f4ac8a2eb80b53b003ffa3327 to your computer and use it in GitHub Desktop.
Save kevinmichaelchen/3928825f4ac8a2eb80b53b003ffa3327 to your computer and use it in GitHub Desktop.
Installing pkgx (Successor to Homebrew)

You don't really need Homebrew

pkgx is a package manager that can basically do everything Homebrew can.

You can find full installation instructions here, but it's simplest to run:

curl -fsS https://pkgx.sh | sh

Congrats, you can now run literally almost any open-source package with one small exception for Golang. For that, you'll actually need Homebrew.

# The official Homebrew uninstall method
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"

# Remove any lingering traces
sudo rm -rf /opt/homebrew 

# Just install Go
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install -v go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment