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]] | + | [[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. |
− | |||
== Basic Usage == | == Basic Usage == | ||
− | To install software there are at least 3 commands: <code> | + | To install software there are at least 3 commands: <code>brew install</code>, <code>brew cask</code> and <code>brew tap</code>: |
− | |||
− | |||
* Install [[wget]] software: | * Install [[wget]] software: | ||
− | ** <code> | + | ** <code>brew install wget</code> |
− | |||
* Uninstall [[wget]] software | * Uninstall [[wget]] software | ||
− | ** <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> | + | ** <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> | + | **<code>brew list</code><ref>https://apple.stackexchange.com/questions/101090/list-of-all-packages-installed-using-homebrew</ref> |
− | **<code> | + | **<code>brew list --versions</code> (to include package versions) |
− | **<code> | + | **<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> |
− | |||
− | |||
− | |||
− | |||
− | |||
== 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 | + | * 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> | + | * <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 | ||
− | |||
− | == Related == | + | == Related commands == |
− | + | <code>[[pkgutil]]</code> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== 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: | + | [[Category:Operating systems]] |
[[Category:macOS]] | [[Category:macOS]] |
Advertising: