Difference between revisions of "Homebrew"

From wikieduonline
Jump to navigation Jump to search
(Created page with "Homebrew is a non Apple official free and open-source software package management system that allows the installation...")
 
 
(41 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[wikipedia:Homebrew (package management software)|Homebrew]] is a non Apple official free and open-source software [[package management]] system that allows the installation of software on Apple's macOS operating system using the command line terminal.
+
[[wikipedia:Homebrew (package management software)|Homebrew]] (2009) is a non Apple official free and open-source software [[package management]] system that allows the installation of software on Apple's macOS operating system using the command line terminal.
  
 +
* [[Homebrew installation]]
  
 
== Basic Usage ==
 
== Basic Usage ==
To install software there are at least 3 commands: <code>brew install</code>, <code>brew cask</code> and <code>brew tap</code>:
+
To install software there are at least 3 commands: <code>[[brew install]]</code>, <code>[[brew cask]]</code> and <code>[[brew tap]]</code>:
 +
 
 +
* <code>[[brew update]]</code>
 
* Install [[wget]] software:  
 
* Install [[wget]] software:  
** <code>brew install wget</code>
+
** <code>[[brew install]] wget</code>
 +
** <code>[[brew install postgresql]]@12</code>
 
* Uninstall [[wget]] software
 
* Uninstall [[wget]] software
** <code>brew uninstall wget</code>
+
** <code>[[brew uninstall]] wget</code>
 
* Install [[Vagrant]] GUI software<ref>https://github.com/Homebrew/homebrew-cask</ref>, such as Atom or Google Chrome:  
 
* Install [[Vagrant]] GUI software<ref>https://github.com/Homebrew/homebrew-cask</ref>, such as Atom or Google Chrome:  
** <code>brew cask install vagrant</code>
+
** <code>[[brew cask]] install vagrant</code>
* View info of package: <code>brew info wget</code>
+
* View info of package: <code>[[brew info]] wget</code>
 
* Create your own package: <code>brew create https://foo.com/bar-1.0.tgz</code>
 
* Create your own package: <code>brew create https://foo.com/bar-1.0.tgz</code>
 
* Get a list of installed packages (formulae in Homebrew terminology):  
 
* Get a list of installed packages (formulae in Homebrew terminology):  
**<code>brew list</code><ref>https://apple.stackexchange.com/questions/101090/list-of-all-packages-installed-using-homebrew</ref>
+
**<code>[[brew list]]</code><ref>https://apple.stackexchange.com/questions/101090/list-of-all-packages-installed-using-homebrew</ref>
**<code>brew list --versions</code> (to include package versions)
+
**<code>[[brew list --versions]]</code> (to include package versions)
**<code>brew list PACKAGE_NAME</code> List of file includes in PACKAGE_NAME
+
**<code>[[brew list]] PACKAGE_NAME</code> List of file includes in PACKAGE_NAME
 
**<code>brew cask list</code>
 
**<code>brew cask list</code>
 
**<code>brew bundle</code>
 
**<code>brew bundle</code>
 
**<code>brew leaves</code>
 
**<code>brew leaves</code>
  
Other commands: <code>brew link</code>
+
Other commands:  
 +
*<code>[[brew link]]</code>
 +
* <code>[[brew doctor]]</code>
 +
* <code>[[brew services]]</code>
 +
* <code>[[brew test]]</code>
 +
* <code>[[brew --help]]</code>
  
 
== Advanced Usage ==
 
== Advanced Usage ==
 
* Get a list of files installed with package_name: <code>brew list package_name</code>
 
* Get a list of files installed with package_name: <code>brew list package_name</code>
* Search available packages by name: <code>brew search PACKAGE_NAME_TO_SEARCH</code>
+
* Search available packages by name: <code>[[brew search]] PACKAGE_NAME_TO_SEARCH</code>
* To autoupdate your software, you can use https://github.com/DomT4/homebrew-autoupdate
+
* To [[autoupdate]] your software, you can use https://github.com/DomT4/homebrew-autoupdate
  
 
== Maintenance ==
 
== Maintenance ==
 
Get latest version of brew and package information.
 
Get latest version of brew and package information.
* <code>brew update</code> or <code>brew update -v</code>
+
* <code>[[brew update]]</code> or <code>brew update -v</code>
  
 
Get a list of not up to date packages:  
 
Get a list of not up to date packages:  
Line 35: Line 44:
  
 
Upgrade every installed package, see also https://github.com/DomT4/homebrew-autoupdate to autoupdate your software.
 
Upgrade every installed package, see also https://github.com/DomT4/homebrew-autoupdate to autoupdate your software.
* <code>brew upgrade</code>
+
* <code>[[brew upgrade]]</code>: <code>brew update && brew upgrade</code>
  
 
To autoupdate your brew software, you can use  
 
To autoupdate your brew software, you can use  
 
* homebrew-autoupdate https://github.com/DomT4/homebrew-autoupdate
 
* homebrew-autoupdate https://github.com/DomT4/homebrew-autoupdate
 +
 +
* Disk usage: <code>/Users/*[[/brew/]]</code>
 +
 +
== Related ==
 +
* <code>[[pkgutil]]</code>
 +
* <code>[[lsbom]]</code><ref>https://ss64.com/osx/lsbom.html</ref> List the contents of an installer's bom (bill of materials) file
 +
* [[Max Howell]]
 +
* [[Google Analytics]]: <code>[[brew analytics off]]</code>
 +
* [[Ansible]]: https://docs.ansible.com/ansible/latest/collections/community/general/homebrew_module.html
 +
[[/opt/homebrew/bin/]]
 +
* [[Snap]], [[flatpak]]
  
 
== See also ==
 
== See also ==
* [[pkgutil]]
+
* {{brew}}
 +
 
  
[[Category:Server administration]]
+
[[Category:Package manager]]
[[Category:Operating systems]]
 
 
[[Category:macOS]]
 
[[Category:macOS]]

Latest revision as of 08:20, 1 April 2024

Homebrew (2009) is a non Apple official free and open-source software package management system that allows the installation of software on Apple's macOS operating system using the command line terminal.

Basic Usage[edit]

To install software there are at least 3 commands: brew install, brew cask and brew tap:

Other commands:

Advanced Usage[edit]

Maintenance[edit]

Get latest version of brew and package information.

Get a list of not up to date packages:

  • brew outdated

Upgrade every installed package, see also https://github.com/DomT4/homebrew-autoupdate to autoupdate your software.

To autoupdate your brew software, you can use

Related[edit]

/opt/homebrew/bin/

See also[edit]

  • https://github.com/Homebrew/homebrew-cask
  • https://apple.stackexchange.com/questions/101090/list-of-all-packages-installed-using-homebrew
  • https://ss64.com/osx/lsbom.html
  • Advertising: