Homebrew (package manager)

Last updated
Homebrew
Original author(s) Max Howell
Initial release21 May 2009;14 years ago (2009-05-21) [1]
Stable release
4.2.9 [2] / 19 February 2024;26 days ago (19 February 2024)
Repository
Written in Ruby
Operating system macOS, Linux, WSL
Available inEnglish
Type Package manager
License BSD 2-Clause License
Website brew.sh OOjs UI icon edit-ltr-progressive.svg

Homebrew is a free and open-source software package management system that simplifies the installation of software on Apple's operating system, macOS, as well as Linux. The name is intended to suggest the idea of building software on the Mac depending on the user's taste. Originally written by Max Howell, the package manager has gained popularity in the Ruby on Rails community and earned praise for its extensibility. [3] Homebrew has been recommended for its ease of use [4] as well as its integration into the command-line interface. [5] Homebrew is a member of the Open Source Collective, [6] and is run entirely by unpaid volunteers. [7]

Contents

Homebrew has made extensive use of GitHub to expand the support of several packages through user contributions. In 2010, Homebrew was the third-most-forked repository on GitHub. [8] In 2012, Homebrew had the largest number of new contributors on GitHub. [9] In 2013, Homebrew had both the largest number of contributors and issues closed of any project on GitHub. [10]

Homebrew has spawned several sub-projects such as Linuxbrew, a Linux port now officially merged into Homebrew; [11] [12] Homebrew Cask, which builds upon Homebrew and focuses on the installation of GUI applications; [13] and "taps" dedicated to specific areas or programming languages like PHP. [14]

History

Homebrew was written by Max Howell in 2009. [1] [15] In March 2013, Homebrew successfully completed a Kickstarter campaign to raise funds for servers to test and build formulae and managed to raise £ 14,859. [16] On December 13, 2013, the Homebrew repository migrated from Howell's GitHub account to its own project account. [17] In February 2015, due to downtime at SourceForge which resulted in binaries being unavailable, Homebrew moved their hosting to Bintray. [18] On September 21, 2016, Homebrew version 1.0.0 was released. [19] As of February 2021, Homebrew is maintained by a team of 34 people. [7] In January 2019, Linuxbrew was merged back into Homebrew, adding beta support for Linux and the Windows Subsystem for Linux to the Homebrew feature set. [20] On February 2, 2019, Homebrew version 2.0.0 was released. [21] On September 21, 2020, Homebrew version 2.5.2 was released with support for bottle taps (binary package repositories) via GitHub Releases. [22] Version 3.0.0 was released almost exactly two years after 2.0.0, on February 5, 2021, and added official support for Macs with Apple silicon. [23] On April 12, 2021, Homebrew version 3.1.0 was released completing their migration of bottles (binary packages) to GitHub Packages before the May 1, 2021 shutdown of Bintray as previously announced by JFrog. [24] On February 16, 2023, Homebrew version 4.0.0 was released which defaults to fetching Homebrew-maintained formulae from hosted JSON files rather than local Git-cloned taps. [25]

Implementation

Homebrew is written in the Ruby programming language and targets the version of Ruby that comes installed with the macOS operating system. By default, it is installed into /usr/local on Intel-based machines and /opt/homebrew on Apple silicon. [26] [27] The installation consists of a git repository that allows users to update Homebrew by pulling an updated repository from GitHub.[ citation needed ] The package manager builds software from source using "formulae", Ruby scripts constructed with the Homebrew domain-specific language (DSL) for managing dependencies, downloading source files, and configuring and compiling software. Binary packages called "bottles" provide pre-built formulae with default options. [28]

Homebrew does not honor the default privileges of /usr/local; directory ownership is changed from root with group permissions for the wheel group to the installing user and the "admin" group. Specifically, the mode changes from drwxr-xr-x root wheel to drwxrwxr-x myuser admin. [29] All files, not just the directories, have their ownership changed by the installer. This is considered by some as a major security flaw. [30]

Data collection

Homebrew collects installation, build error, and operating system version statistics via InfluxDB. [31] As of Homebrew 4.0.23, no data is collected via Google Analytics. [32] Users can view analytics data from the last 30, 90, and 365 days on the Homebrew website. [33]

It is possible to opt out of data collection with the command brew analytics off. [34]

Version History

VersionReleasedSupported MacOSMin. MacOSShort Blog Description [35]
4.2.02023-12-18Sonoma (14)10.11+ (unknown)major performance upgrades (e.g. using Ruby 3.1, upgrading fewer dependencies), .env file configuration and macOS Sonoma support.
4.1.02023-07-20Ventura (13)significant improvements to the security/reliability/performance/usability of Homebrew 4.0.0’s new JSON API, the completion of the migration of analytics from Google Analytics in the US to InfluxDB in the EU and groundwork for later macOS Sonoma (14) support.
4.0.02023-02-16Enables significantly faster Homebrew-maintained tap updates by migrating from Git-cloned taps to JSON downloads.
3.6.02022-09-07preliminary macOS Ventura support, the need for --eval-all/HOMEBREW_EVAL_ALL and a migration to Ubuntu 22.04 as our CI platform.
3.5.02022-06-06Monterey (12)El Capitan (10.11)improved brew update behaviour and Homebrew (on macOS) requiring at least OS X El Capitan (10.11).
3.4.02022-02-2810.9+ (unknown)HOMEBREW_NO_ENV_HINTS to hide configuration suggestions, brew services supported on systemd on Linux, brew install --overwrite and Homebrew beginning the process to leave the SFC.
3.3.02021-10-25migration from Homebrew/linuxbrew-core to Homebrew/homebrew-core for all Homebrew on Linux users, the official support of macOS Monterey (and, as usual, dropping the support for Mojave due to us only supporting 3 macOS versions) and the addition of an opt-in HOMEBREW_INSTALL_FROM_API flag to avoid needing to have Homebrew/homebrew-core or Homebrew/homebrew-cask repositories tapped/cloned locally.
3.2.02021-06-21~Monterey (12)brew install now upgrades outdated formulae by default and basic macOS 12 (Monterey) support.
3.1.02021-04-12Big Sur (11)migration of our bottles (binary packages) to GitHub Packages.
3.0.02021-02-05official Apple Silicon support and a new bottle format in formulae.
2.7.02020-12-21API deprecations.
2.6.02020-12-01macOS Big Sur support on Intel, brew commands replacing all brew cask commands, the beginnings of macOS M1/Apple Silicon/ARM support and API deprecations.
2.5.02020-09-08Catalina (10.15)better brew cask integration, license support and API deprecations.
2.4.02020-06-11dropping macOS Mavericks support, the deprecation of devel versions and brew audit speedups.
2.3.02020-05-29GitHub Actions CI usage, fetching resources before installation, Docker image improvements and the deprecation of brew install from URLs.
2.2.02019-11-27macOS Catalina support, performance increases and better Homebrew on Linux ecosystem integration.
2.1.02019-04-04Mojave (10.14)casks on https://formulae.brew.sh, search on Homebrew sites and better Docker support.
2.0.02019-02-02Mavericks (10.9)official support for Linux and Windows 10 (with Windows Subsystem for Linux), brew cleanup running automatically, no more options in Homebrew/homebrew-core, and removal of support for OS X Mountain Lion (10.8) and older.
1.9.02019-01-09Mountain Lion (10.8) and olderLinux support, (optional) automatic brew cleanup and providing bottles (binary packages) to more Homebrew users.
1.8.02018-10-23official Mojave support, linkage auto-repair on brew upgrade, brew info displaying analytics data and quarantining Cask’s downloads.
1.7.02018-07-15~Mojave (10.14)fixes for macOS 10.14 Mojave’s developer beta, Homebrew Formulae’s JSON analytics and formulae APIs and various formula API deprecations.
1.6.02018-04-09?brew install python installing Python 3, the deprecation of Homebrew/homebrew-php and various formula API deprecations.
1.5.02018-01-19deprecations of formula APIs and some Homebrew organisation formula taps.
1.4.02017-12-11Homebrew filters environment variables.
1.3.02017-07-31brew install python no longer installs a python binary without manual PATH additions and instead installs a python2 binary. This avoids overriding the system python binary by default when installing Python as a dependency. It also paves the way to eventually have python be Python 3.x.
1.2.02017-05-01most Homebrew taps (package repositories) in the Homebrew GitHub organisation have been deprecated and the currently buildable software moved into Homebrew/homebrew-core. This will improve the quality and availability of all their software.
1.1.02016-11-07We’ve had a great response to Homebrew 1.0.0 and been iterating on our work there. That 1.1.0 follows 1.0.9 is a happy coincidence due to breaking changes; in the future we may have a e.g. 1.1.10.
1.0.02016-09-21In the seven years since Homebrew was created by @mxcl our community has grown to almost 6000 unique contributors, a wide-reaching third-party “tap” ecosystem and thousands of packages.

See also

Related Research Articles

<span class="mw-page-title-main">Wine (software)</span> Windows compatibility software

Wine is a free and open-source compatibility layer to allow application software and computer games developed for Microsoft Windows to run on Unix-like operating systems. Developers can compile Windows applications against WineLib to help port them to Unix-like systems. Wine is predominantly written using black-box testing reverse-engineering, to avoid copyright issues. No code emulation or virtualization occurs. Wine is primarily developed for Linux and macOS.

<span class="mw-page-title-main">Package manager</span> Software tools for handling software packages

A package manager or package-management system is a collection of software tools that automates the process of installing, upgrading, configuring, and removing computer programs for a computer in a consistent manner.

Darwin is the core Unix operating system of macOS, iOS, watchOS, tvOS, iPadOS, visionOS, and bridgeOS. It previously existed as an independent open-source operating system, first released by Apple Inc. in 2000. It is composed of code derived from NeXTSTEP, FreeBSD, other BSD operating systems, Mach, and other free software projects' code, as well as code developed by Apple.

<span class="mw-page-title-main">Fink (software)</span> Project to port and package open-source Unix software to macOS

The Fink project is an effort to port and package open-source Unix programs to macOS. Fink uses dpkg and APT, as well as its own frontend program, fink.

<span class="mw-page-title-main">Xcode</span> IDE including tools for developing software for Apple platforms

Xcode is Apple's integrated development environment (IDE) for macOS, used to develop software for macOS, iOS, iPadOS, watchOS, tvOS, and visionOS. It was initially released in late 2003; the latest stable release is version 15, released on September 18, 2023, and is available free of charge via the Mac App Store and the Apple Developer website. Registered developers can also download preview releases and prior versions of the suite through the Apple Developer website. Xcode includes command-line tools that enable UNIX-style development via the Terminal app in macOS. They can also be downloaded and installed without the GUI.

<span class="mw-page-title-main">Arch Linux</span> Rolling release distribution of Linux

Arch Linux is an independently developed, x86-64 general-purpose Linux distribution that strives to provide the latest stable versions of most software by following a rolling-release model. The default installation is a minimal base system, configured by the user to only add what is purposely required.

<span class="mw-page-title-main">MacPorts</span> Package Manager for macOS

MacPorts, formerly DarwinPorts, is a package manager for macOS and Darwin. It is an open-source software project that aims to simplify the installation of other open source software. It is similar in function to Fink and the BSD ports collections.

AppImage is an open-source format for distributing portable software on Linux. It aims to allow the installation of binary software independently of specific Linux distributions, a concept often referred to as upstream packaging. As a result, one AppImage can be installed and run across Ubuntu, Arch Linux, and Red Hat Enterprise Linux without needing to use different files. It aims to be a format that's self-contained, rootless, and independent of the underlying Linux distribution.

<span class="mw-page-title-main">Transmission (BitTorrent client)</span> BitTorrent client

Transmission is a BitTorrent client which features a variety of user interfaces on top of a cross-platform back-end. Transmission is free software licensed under the terms of the GNU General Public License, with parts under the MIT License.

The FreeBSD Ports collection is a package management system for the FreeBSD operating system. As of February 2020, there are over 38,487 ports available in the collection. It has also been adopted by NetBSD as the basis of its pkgsrc system.

<span class="mw-page-title-main">HomeBank</span>

HomeBank is a personal accounting software package that runs on OpenBSD, Linux, FreeBSD, Microsoft Windows, macOS and AmigaOS. Released under version 2 or later of the GNU General Public License, HomeBank is free software. HomeBank can be found in the software repositories of Linux distributions such as Debian, Fedora, Mandriva, openSUSE, Gentoo Linux, Arch Linux and Ubuntu.

<span class="mw-page-title-main">SMPlayer</span> Graphical front-end for MPlayer and mpv

SMPlayer is a cross-platform graphical front-end for MPlayer and mpv and forks of Mplayer using GUI widgets offered by Qt. SMPlayer is free and open-source software subject to the terms of the GNU General Public License version 2 or later. SMplayer has been localized in more than 30 languages.

<span class="mw-page-title-main">Raspberry Pi OS</span> Debian-based operating system for Raspberry Pi

Raspberry Pi OS is a Unix-like operating system based on the Debian GNU/Linux distribution for the Raspberry Pi family of compact single-board computers. First developed independently in 2012, it has been produced as the primary operating system for these boards since 2013, distributed by the Raspberry Pi Foundation.

<span class="mw-page-title-main">Atom (text editor)</span> Free and open-source text and source code editor

Atom is a free and open-source text and source-code editor for macOS, Linux, and Windows with support for plug-ins written in JavaScript, and embedded Git control. Developed by GitHub, Atom was released on June 25, 2015.

<span class="mw-page-title-main">Anaconda (Python distribution)</span> Distribution of the Python and R languages for scientific computing

Anaconda is a distribution of the Python and R programming languages for scientific computing, that aims to simplify package management and deployment. The distribution includes data-science packages suitable for Windows, Linux, and macOS. It is developed and maintained by Anaconda, Inc., which was founded by Peter Wang and Travis Oliphant in 2012. As an Anaconda, Inc. product, it is also known as Anaconda Distribution or Anaconda Individual Edition, while other products from the company are Anaconda Team Edition and Anaconda Enterprise Edition, neither of which are free.

git-annex is a distributed file synchronization system written in Haskell. It aims to solve the problem of sharing and synchronizing collections of large files independent from a commercial service or even a central server.

<span class="mw-page-title-main">Guetzli</span> JPEG encoder

Guetzli is a freely licensed JPEG encoder that Jyrki Alakuijala, Robert Obryk, and Zoltán Szabadka have developed in Google's Zürich research branch. The encoder seeks to produce significantly smaller files than prior encoders at equivalent quality, albeit at very low speed. It is named after the Swiss German diminutive expression for biscuits, in line with the names of other compression technology from Google.

<span class="mw-page-title-main">Gitea</span> Free forge based on Git written in Go

Gitea is a forge software package for hosting software development version control using Git as well as other collaborative features like bug tracking, code review, continuous integration, kanban boards, tickets, and wikis. It supports self-hosting but also provides a free public first-party instance. It is a fork of Gogs and is written in Go. Gitea can be hosted on all platforms supported by Go including Linux, macOS, and Windows. The project is funded on Open Collective.

<span class="mw-page-title-main">R package</span> Extensions to the R statistical programming language

R packages are extensions to the R statistical programming language. R packages contain code, data, and documentation in a standardised collection format that can be installed by users of R, typically via a centralised software repository such as CRAN. The large number of packages available for R, and the ease of installing and using them, has been cited as a major factor driving the widespread adoption of the language in data science.

References

  1. 1 2 Homebrew release 0.1 on GitHub
  2. "Release 4.2.9". 19 February 2024. Retrieved 20 February 2024.
  3. Arko, Andre. "Homebrew: OS X's Missing Package Manager". Engine Yard blog. Engine Yard. Archived from the original on July 8, 2015.
  4. Hoffman, Chris. "Homebrew for OS X Easily Installs Desktop Apps and Terminal Utilities". How-to Geek. Archived from the original on 24 March 2015. Retrieved 24 June 2015.
  5. Terpstra, Brett (25 December 2009). "Homebrew, the perfect gift for command line lovers". Engadget. Retrieved 24 June 2015.
  6. "Homebrew - Open Collective". 12 January 2024.
  7. 1 2 McQuaid, Mike. "Homebrew/brew/README.md". GitHub. Archived from the original on 5 February 2021. Retrieved 5 February 2021.{{cite web}}: CS1 maint: bot: original URL status unknown (link)
  8. "Popular Forked Repositories". GitHub. Archived from the original on 11 March 2010. Retrieved 24 June 2015.
  9. "The Octoverse in 2012". GitHub.
  10. "GitHub Octoverse 2013". Archived from the original on 2014-02-07.{{cite web}}: CS1 maint: unfit URL (link)
  11. "Linuxbrew". Linuxbrew. Retrieved 2019-02-02.
  12. "Linuxbrew Readme". GitHub. Retrieved 2019-03-29.
  13. "Homebrew Cask". Github. Retrieved 15 April 2019.
  14. "Homebrew/homebrew-php". GitHub. Retrieved 25 June 2015.
  15. Howell, Max. "I'll start with a rare Belgian yeast and Sussex hops". GitHub. Retrieved 24 June 2015.
  16. "brew test-bot". Kickstarter. Retrieved 25 June 2015.
  17. @MacHomebrew (December 11, 2013). "This Saturday morning at 0100 GMT we will be migrating Homebrew" (Tweet) via Twitter.
  18. @MacHomebrew (February 23, 2015). "Homebrew's bottles (binary packages) are now hosted by @bintray" (Tweet) via Twitter.
  19. Homebrew release 1.0.0 on GitHub
  20. "Homebrew 1.9.0". Homebrew. 9 January 2019. Retrieved 10 January 2019.
  21. McQuaid, Mike (2 February 2019). "2.0.0". Homebrew. Retrieved 3 February 2019.
  22. Dziurla, Dawid (November 18, 2020). "Homebrew tap with bottles uploaded to GitHub Releases". blog. Homebrew. Retrieved 2021-04-08.
  23. McQuaid, Mike (5 February 2021). "3.0.0". Homebrew. Retrieved 5 February 2021.
  24. McQuaid, Mike (April 12, 2021). "3.1.0". blog. Homebrew. Retrieved 2021-04-13.
  25. McQuaid, Mike (February 16, 2023). "4.0.0". blog. Homebrew. Retrieved 2023-07-07.
  26. smittytone (2021-02-07). "How to migrate to native Homebrew on an M1 Mac". smittytone messes with micros. Retrieved 2021-08-11.
  27. "Discussion: longterm Homebrew prefix on Apple Silicon Macs · Issue #9177 · Homebrew/brew". GitHub. Retrieved 2021-08-11.
  28. "Homebrew Terminology", Formula Cookbook, Homebrew, retrieved 2024-02-27
  29. Ounsworth, Mike. "What are the security implications of Homebrew and Macports?". StackExchange Information Security. Retrieved 2 April 2019.
  30. Phil, Stokes (21 March 2018). "How Homebrew invites users to get pwned". AppleHelpWriter.com. Retrieved 2 April 2019.
  31. "4.0.0 – Homebrew". Homebrew Blog. 16 February 2023. Retrieved 2023-07-07.
  32. "4.0.23 Release notes". GitHub Releases. Retrieved 2023-07-07.
  33. "Analytics Data". Homebrew Formulae. Retrieved 1 November 2018.
  34. "Analytics Command". Homebrew Manual. Retrieved 2023-07-07.
  35. "Homebrew — Homebrew". Homebrew Blog. Retrieved 15 March 2024.