Difference between revisions of "Homebrew"

From wikieduonline
Jump to navigation Jump to search
Line 5: Line 5:
 
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>:
 
* Install [[wget]] software:  
 
* Install [[wget]] software:  
** <code>brew install wget</code>
+
** <code>[[brew install]] wget</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>

Revision as of 16:36, 18 January 2020

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

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

  • Install wget software:
  • Uninstall wget software
  • Install Vagrant GUI software[1], such as Atom or Google Chrome:
    • brew cask install vagrant
  • View info of package: brew info wget
  • Create your own package: brew create https://foo.com/bar-1.0.tgz
  • Get a list of installed packages (formulae in Homebrew terminology):
    • brew list[2]
    • brew list --versions (to include package versions)
    • brew list PACKAGE_NAME List of file includes in PACKAGE_NAME
    • brew cask list
    • brew bundle
    • brew leaves

Other commands: brew link

Advanced Usage

Maintenance

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 commands

pkgutil

See also

  • 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: