Editing Homebrew

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
[[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.
+
[[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.
  
* [[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:  
+
Other commands: <code>brew link</code>
*<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 ==
Line 44: Line 35:
  
 
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 update && 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 ==
+
== Related commands ==
* <code>[[pkgutil]]</code>
+
<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 ==
 
* {{brew}}
 
* {{brew}}
 +
* {{macOS}}
 +
* {{Package managers}}
 +
* <code>[[lsbom]]</code><ref>https://ss64.com/osx/lsbom.html</ref> List the contents of an installer's bom (bill of materials) file
  
 
+
[[Category:Server administration]]
[[Category:Package manager]]
+
[[Category:Operating systems]]
 
[[Category:macOS]]
 
[[Category:macOS]]

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Template used on this page:

Advertising: