Software:Homebrew (package management software)

From HandWiki
Homebrew
Homebrew’s logo
Screenshot
Homebrew help output.png
The help output for the brew command running in the Terminal
Original author(s)Max Howell
Initial release21 May 2009; 14 years ago (2009-05-21)[1]
Stable release
2.2.2 / 23 December 2019; 4 years ago (2019-12-23)[2]
Written inRuby
Operating systemmacOS, Linux
Available inEnglish
TypePackage manager
LicenseBSD license
Websitebrew.sh

Homebrew is a free and open-source software package management system that simplifies the installation of software on Apple's macOS operating system and 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.[5] Homebrew is a non-profit project member of the Software Freedom Conservancy, and is run entirely by unpaid volunteers.[6]

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

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

History

Homebrew was written by Max Howell in 2009.[1][14] 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.[15] On December 13, 2013, the Homebrew repository migrated from Howell's GitHub account to its own project account.[16] In February 2015, due to downtime at SourceForge which resulted in binaries being unavailable, Homebrew moved their hosting to bintray.[17] On September 21, 2016, Homebrew version 1.0.0 was released.[18] As of December 2018, Homebrew is maintained by a team of 21 people.[6] In January 2019, Linuxbrew was merged back into Homebrew, adding beta support for Linux and the Windows Subsystem for Linux to Homebrew’s feature set.[19] On February 2, 2019, Homebrew version 2.0.0 was released.[20]

Implementation

Homebrew is written in the Ruby programming language and targets the version of Ruby that comes installed with the macOS operating system. It is by default installed into /usr/local and consists of a git repository, allowing the user to update Homebrew by pulling an updated repository from GitHub. The package manager builds software from source using "formulae", Ruby scripts constructed with Homebrew's 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.[citation needed]

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

Data collection

Homebrew collects installation, build error, and operating system version statistics via Google Analytics.[23] It is possible to opt out with the command brew analytics off.[23]

Users can view analytics data from the last 30, 90, and 365 days on the Homebrew website.[24]

See also

References

  1. 1.0 1.1 on GitHub
  2. on GitHub
  3. Arko, Andre. "Homebrew: OS X’s Missing Package Manager". Engine Yard blog. Engine Yard. Archived from the original on July 8, 2015. https://web.archive.org/web/20150708101237/https://blog.engineyard.com/2010/homebrew-os-xs-missing-package-manager/. 
  4. Hoffman, Chris. "Homebrew for OS X Easily Installs Desktop Apps and Terminal Utilities". http://www.howtogeek.com/211541/homebrew-for-os-x-easily-installs-desktop-apps-and-terminal-utilities/. Retrieved 24 June 2015. 
  5. Terpstra, Brett. "Homebrew, the perfect gift for command line lovers". https://www.engadget.com/2009/12/25/homebrew-the-perfect-gift-for-command-line-lovers/. Retrieved 24 June 2015. 
  6. 6.0 6.1 McQuaid, Mike. "Homebrew/brew/README.md". https://github.com/Homebrew/brew/blob/master/README.md#who-are-you. Retrieved 4 December 2018. 
  7. "Popular Forked Repositories". Archived from the original on 11 March 2010. https://web.archive.org/web/20100311081541/http://github.com/popular/forked. Retrieved 24 June 2015. 
  8. "The Octoverse in 2012". GitHub. https://github.com/blog/1359-the-octoverse-in-2012. 
  9. "GitHub Octoverse 2013". https://octoverse.github.com. 
  10. "Linuxbrew". https://linuxbrew.sh. Retrieved 2019-02-02. 
  11. "Linuxbrew Readme". https://github.com/Linuxbrew/brew/blob/93389fde63974f096156344e281610acec44130c/README.md. Retrieved 2019-03-29. 
  12. "Homebrew Cask". https://github.com/homebrew/homebrew-cask. Retrieved 15 April 2019. 
  13. "Homebrew/homebrew-php". https://github.com/Homebrew/homebrew-php. Retrieved 25 June 2015. 
  14. Howell, Max. "I'll start with a rare Belgian yeast and Sussex hops". https://github.com/Homebrew/homebrew/commit/29d85578e75170a6c0eaebda4d701b46f1acf446. Retrieved 24 June 2015. 
  15. "brew test-bot". https://www.kickstarter.com/projects/homebrew/brew-test-bot/description. Retrieved 25 June 2015. 
  16. @MacHomebrew (11 December 2013). "This Saturday morning at 0100 GMT we will be migrating Homebrew". https://twitter.com/MacHomebrew/status/410681585407901696. 
  17. @MacHomebrew (23 February 2015). "Homebrew's bottles (binary packages) are now hosted by @bintray". https://twitter.com/MacHomebrew/status/569872540845387777. 
  18. on GitHub
  19. "Homebrew 1.9.0". https://brew.sh/2019/01/09/homebrew-1.9.0/. Retrieved 10 January 2019. 
  20. McQuaid, Mike. "2.0.0". https://brew.sh/2019/02/02/homebrew-2.0.0/. Retrieved 3 February 2019. 
  21. Ounsworth, Mike. "What are the security implications of Homebrew and Macports?". https://security.stackexchange.com/a/191614. Retrieved 2 April 2019. 
  22. Phil, Stokes. "How Homebrew invites users to get pwned". https://applehelpwriter.com/2018/03/21/how-homebrew-invites-users-to-get-pwned/. Retrieved 2 April 2019. 
  23. 23.0 23.1 "Homebrew's Anonymous Aggregate User Behaviour Analytics". 20 September 2016. Archived from the original. Error: If you specify |archiveurl=, you must also specify |archivedate=. https://web.archive.org/web/20161127041156/https://github.com/Homebrew/brew/blob/master/docs/Analytics.md. 
  24. "Homebrew Analytics Data". https://formulae.brew.sh/analytics/. Retrieved 1 November 2018. 

External links