Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To install Brew—Homebrew, historically called Linuxbrew on Linux—on Ubuntu 24.04 or 22.04 LTS, first install Ubuntu’s compiler and development prerequisites, then use Homebrew’s current official installation instructions. Run the installer as the account that will own Homebrew, and follow the shell setup steps it prints before using brew.

How do I install Brew on Ubuntu 24.04 or 22.04 LTS?

Homebrew’s Linux documentation gives this Debian/Ubuntu command for the prerequisites:

sudo apt-get install build-essential procps curl file git

These packages provide the development tools Homebrew expects, including a working system C compiler. Homebrew may install its own newer GCC when needed, but that does not replace the system compiler required for bootstrap and post-install tasks. See Homebrew on Linux for the current requirements.

  1. Install the prerequisites. Open a terminal, run the APT command above, and complete any prompts.
  2. Run the current supported installer. Follow the Linux installation link from Homebrew’s official documentation. Use the command shown on the live instructions rather than an old copied installer command.
  3. Follow the installer’s printed next steps. On Linux, Homebrew’s default prefix is /home/linuxbrew/.linuxbrew. The installer prints the shell setup commands appropriate to your installation.
  4. Check the installation. After configuring your shell, try brew install hello as a first package. Run brew doctor if Homebrew reports a problem.

Configure Bash or zsh to find brew

Homebrew will not work in a shell that has not loaded its environment. The Linux documentation shows this command for the current terminal session and Bash configuration:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
64GB - 16-in-1, Bootable USB Drive 3.2 for Linux & Windows 11, Zorin | Mint | Kali | Ubuntu | Tails | Debian, Supported UEFI and Legacy
  • ✅For beginners, refer image-7, its a video boot instruction, and image-6 is "boot menu Hot Key list"
  • ✅16-IN-1, 64GB Bootable USB Drive 3.2 , Can Run Linux On USB Drive Without Install, All Latest versions.
  • ✅Including Windows 11 64Bit & Linux Mint 22.3 (Cinnamon)、Kali 2026.02、Ubuntu 26.04、Zorin Pro 18、Tails 7.8.1、Debian 13.5.0、Garuda 2026.03、Fedora Workstation 44、Manjaro 25.06、Pop!_OS 22.04、Solus 2026.04、Archcraft 26.05、Neon 2026.06、Fossapup 9.5、Sparkylinux 8.3, All ISO has been Tested
  • ✅Supported UEFI and Legacy, Compatibility any PC/Laptop, Any boot issue only needs to disable "Secure Boot"
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> ~/.bashrc

The first line makes brew available in the current session; the second adds the setup to Bash’s startup file for later sessions. If zsh is your login shell, use ~/.zshrc instead of ~/.bashrc. Prefer the exact commands printed by your installer, particularly if you chose a non-default prefix.

Ubuntu 24.04 vs. 22.04: what Homebrew support means

Both releases are listed in Homebrew’s Linux CI documentation, but they do not have the same published glibc version or support tier. Homebrew identifies Ubuntu 24.04 as the current homebrew/core bottling base. Its support tier also depends on the machine and installation details—not just the Ubuntu release.

Rank #2
Beamo Ubuntu Desktop 24.04.3 LTS 64-bit Bootable USB Flash Drive - Live USB for Installing and Repairing Ubuntu Desktop
  • UBUNTU 24.04.3 LTS MEDIA - 16GB bootable USB with Ubuntu Desktop 24.04.3 LTS for compatible x86-64 PCs.
  • LIVE OR INSTALL - On supported hardware, start the Ubuntu live environment to evaluate it or launch the installer.
  • PLATFORM BOUNDARY - Not designed to boot Apple Silicon or other ARM-based computers. Confirm CPU architecture and USB-boot support before purchase.
  • BOOT SETTINGS VARY - Boot-menu keys and UEFI settings differ by manufacturer; consult the computer maker's instructions if the USB is not listed.
  • BACK UP BEFORE INSTALLING - Disk-partition and installation choices can erase files or operating systems. Disconnect nonessential drives and preserve the USB until it is no longer needed for installation or recovery.
Ubuntu release glibc listed by Homebrew Homebrew Linux tier by glibc range Ubuntu standard security maintenance Homebrew CI/bottling base
22.04 LTS 2.35 Tier 2: Homebrew places glibc 2.13–2.38 in this tier 2022–2027 Not the current base; Homebrew lists Ubuntu 24.04
24.04 LTS 2.39 Meets the Tier 1 glibc version floor 2024–2029 Current homebrew/core bottling base

These figures and the base designation come from Homebrew’s Linux CI documentation; the tier ranges come from its support-tier policy. Homebrew says its own glibc formula is installed automatically for Linux systems in the 2.13–2.38 range. So Ubuntu 22.04’s listed glibc falls in Tier 2, while Ubuntu 24.04’s listed glibc meets the Tier 1 version floor. Neither statement guarantees that every formula behaves identically on every machine.

Homebrew’s Tier 1 Linux conditions also include a supported architecture—ARM64/AArch64 or Intel x86_64 with SSSE3—a kernel version of 3.2 or newer, a supported Linux distribution, the default or a compatible custom prefix, and use of bottles rather than building official packages from source. Check the live policy for the full criteria and current support status.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
EZITSOL 32GB 9-in-1 Linux Bootable USB Drive for Beginners
  • 1. 9-in-1 Linux:32GB Bootable Linux USB Flash Drive for Ubuntu 24.04 LTS, Linux Mint cinnamon 22, MX Linux xfce 23, Elementary OS 8.0, Linux Lite xfce 7.0, Manjaro kde 24(Replaced by Fedora Workstation 43), Peppermint Debian 32bit (being replaced by MX Linux 32bit) for older PC, Pop OS 22, Zorin OS core xfce 17. The versions you received might be latest than above as we update them to latest/LTS when we think necessary.
  • 2. Try or install:Before installing on your PC, you can try them one by one without touching your hard disks.
  • 3. Easy to use: These distros are easy to use and built with beginners in mind. Most of them Come with a wide range of pre-bundled software that includes office productivity suite, Web browser, instant messaging, image editing, multimedia, and email. Ensure transition to Linux World without regrets for Windows users.
  • 4. Support: Printed user guide on how to boot up and try or install Linux; please contact us for help if you have an issue. Please press "Enter" a couple of times if you see a black screen after selecting a Linux.
  • 5. Compatibility: Except for MACs,Chromebooks and ARM-based devices, works with any brand's laptop and desktop PC, legacy BIOS or UEFI booting, Requires enabling USB boot in BIOS/UEFI configuration and disabling Secure Boot is necessary for UEFI boot mode. Packing: The bootable USB drive comes in a colored PET/CPP zipper bag with instructions on how to get started. The box pictured is not included.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Run Homebrew as its owning account

The default Linux prefix, /home/linuxbrew/.linuxbrew, is intended to let Homebrew install packages without routinely writing to system-owned directories. Homebrew describes the installation as belonging to one owning account; that can be a dedicated account, but the account managing Homebrew must have write access to the installation. After initial setup, formula installation normally does not require sudo. Some casks and system services can still require elevated privileges.

A bottle is a precompiled Homebrew package. Not every formula and system combination has an applicable bottle: Homebrew may build from source if you request a source build, no suitable bottle exists, bottle relocation fails, or formula options require a source build. Homebrew’s Linux documentation also notes that an older distribution may receive recent Homebrew-provided glibc and GCC when its first package is installed; this does not remove the system-compiler prerequisite for bootstrap and post-install work. See the Homebrew FAQ for bottle and installation details.

Rank #4
EZITSOL USB for Ubuntu 24.04 & 22.04 64bit,Lubuntu 18.04 32bit | 3IN1 Bootable Linux USB flash drive/Stick,Jump Drive,Pendrive,Thumb drive
  • 3-in-1: 16GB Multiboot USB flash drive for Ubuntu 24.04 LTS 64bit & 22.04 LTS 64bit, Lubuntu 18.04 LTS 32bit. All are LTS versions, namely, Long Terrm Support Version. The versions you received might be latest than above as we update them when we think necessary.
  • Compatibility: Compatible with any brand's PC, works with both legacy BIOS and UEFI booting mode, except for Apple computers, Chromebooks and ARM-based devices.
  • Popularity:Most popular linux distributions and all come with common software includes office software, web browser, image editing, multimedia, and email except Lubuntu which is desgined to targted for very old PC.
  • Support: Print user guide and support available. please contact us for help if you have an issue.
  • Live USB or install: You can either try on USB or install on hard drive.

Troubleshoot a failed or missing brew command

  • “command not found: brew”: the shell environment may not be loaded. Run the brew shellenv command printed by the installer, then check that it is in the startup file for your shell.
  • Permission errors: confirm you are using the intended owning account and that it has write access to the Homebrew prefix. Avoid making routine formula installs with sudo.
  • Build or compiler errors: confirm the Ubuntu prerequisites were installed and that the system has a working compiler. Use brew doctor to identify common configuration issues.
  • A package builds from source: a suitable bottle may not be available, or the requested options or installation conditions may require a source build.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.