Homebrew_(package_manager)

Homebrew (package manager)

Homebrew (package manager)

macOS CLI package manager in Ruby


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.[6] Homebrew has been recommended for its ease of use[7] as well as its integration into the command-line interface.[8] Homebrew is a member of the Open Source Collective,[9] and is run entirely by unpaid volunteers.[10]

Quick Facts Original author(s), Initial release ...

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.[11] In 2012, Homebrew had the largest number of new contributors on GitHub.[12] In 2013, Homebrew had both the largest number of contributors and issues closed of any project on GitHub.[13]

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

History

Homebrew was written by Max Howell in 2009.[1][18] 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.[19] On December 13, 2013, the Homebrew repository migrated from Howell's GitHub account to its own project account.[20] In February 2015, due to downtime at SourceForge which resulted in binaries being unavailable, Homebrew moved their hosting to Bintray.[21] On September 21, 2016, Homebrew version 1.0.0 was released.[22] As of February 2021, Homebrew is maintained by a team of 34 people.[10] 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.[23] On February 2, 2019, Homebrew version 2.0.0 was released.[24] On September 21, 2020, Homebrew version 2.5.2 was released with support for bottle taps (binary package repositories) via GitHub Releases.[25] 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.[26] 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.[27] 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.[28]

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.[29][30] The installation consists of a Git repository that enables 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.[31]

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.[32] All files, not just the directories, have their ownership changed by the installer. This is considered by some as a major security flaw.[33]

Data collection

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

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

Version History

More information Version, Released ...

See also


References

  1. "Release 4.3.2". GitHub. 27 May 2024. Retrieved 30 May 2024.
  2. "Homebrew 1.9.0". 9 January 2019. Retrieved 10 January 2019.
  3. "brew/LICENSE.txt at master". 4 January 2017. Retrieved 14 April 2021.
  4. Arko, Andre. "Homebrew: OS X's Missing Package Manager". Engine Yard blog. Engine Yard. Archived from the original on July 8, 2015.
  5. 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.
  6. Terpstra, Brett (25 December 2009). "Homebrew, the perfect gift for command line lovers". Engadget. Retrieved 24 June 2015.
  7. 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. "GitHub Octoverse 2013". Archived from the original on 2014-02-07.{{cite web}}: CS1 maint: unfit URL (link)
  10. "Linuxbrew". Linuxbrew. Retrieved 2019-02-02.
  11. "Linuxbrew Readme". GitHub. Retrieved 2019-03-29.
  12. "Homebrew Cask". Github. Retrieved 15 April 2019.
  13. "Homebrew/homebrew-php". GitHub. Retrieved 25 June 2015.
  14. Howell, Max. "I'll start with a rare Belgian yeast and Sussex hops". GitHub. Retrieved 24 June 2015.
  15. "brew test-bot". Kickstarter. Retrieved 25 June 2015.
  16. "Homebrew 1.9.0". Homebrew. 9 January 2019. Retrieved 10 January 2019.
  17. McQuaid, Mike (2 February 2019). "2.0.0". Homebrew. Retrieved 3 February 2019.
  18. Dziurla, Dawid (November 18, 2020). "Homebrew tap with bottles uploaded to GitHub Releases". blog. Homebrew. Retrieved 2021-04-08.
  19. McQuaid, Mike (5 February 2021). "3.0.0". Homebrew. Retrieved 5 February 2021.
  20. McQuaid, Mike (April 12, 2021). "3.1.0". blog. Homebrew. Retrieved 2021-04-13.
  21. McQuaid, Mike (February 16, 2023). "4.0.0". blog. Homebrew. Retrieved 2023-07-07.
  22. smittytone (2021-02-07). "How to migrate to native Homebrew on an M1 Mac". smittytone messes with micros. Retrieved 2021-08-11.
  23. "Homebrew Terminology", Formula Cookbook, Homebrew, retrieved 2024-02-27
  24. Ounsworth, Mike. "What are the security implications of Homebrew and Macports?". StackExchange Information Security. Retrieved 2 April 2019.
  25. Phil, Stokes (21 March 2018). "How Homebrew invites users to get pwned". AppleHelpWriter.com. Retrieved 2 April 2019.
  26. "4.0.0 – Homebrew". Homebrew Blog. 16 February 2023. Retrieved 2023-07-07.
  27. "4.0.23 Release notes". GitHub Releases. Retrieved 2023-07-07.
  28. "Analytics Data". Homebrew Formulae. Retrieved 1 November 2018.
  29. "Analytics Command". Homebrew Manual. Retrieved 2023-07-07.
  30. "Homebrew — Homebrew". Homebrew Blog. Retrieved 15 March 2024.

Share this article:

This article uses material from the Wikipedia article Homebrew_(package_manager), and is written by contributors. Text is available under a CC BY-SA 4.0 International License; additional terms may apply. Images, videos and audio are available under their respective licenses.