From b4744ecf21edd51ea1a2e1d616dd9d6dcb1d321d Mon Sep 17 00:00:00 2001 From: Nicolas Kosinski Date: Sat, 10 Apr 2021 21:22:20 +0200 Subject: [PATCH] brew: make a common page for macOS, Linux and Windows (#5693) --- pages/common/brew.md | 36 ++++++++++++++++++++++++++++++++++++ pages/linux/brew.md | 35 ----------------------------------- pages/osx/brew.md | 36 ------------------------------------ 3 files changed, 36 insertions(+), 71 deletions(-) create mode 100644 pages/common/brew.md delete mode 100644 pages/linux/brew.md delete mode 100644 pages/osx/brew.md diff --git a/pages/common/brew.md b/pages/common/brew.md new file mode 100644 index 00000000000000..4922abf4bc8a05 --- /dev/null +++ b/pages/common/brew.md @@ -0,0 +1,36 @@ +# brew + +> Package manager for macOS and Linux. +> More information: . + +- Install the latest stable version of a formula or cask (use `--devel` for development versions): + +`brew install {{formula}}` + +- List all installed formulae and casks: + +`brew list` + +- Upgrade an installed formula or cask (if none is given, all installed formulae/casks are upgraded): + +`brew upgrade {{formula}}` + +- Fetch the newest version of Homebrew and of all formulae and casks from the Homebrew source repository: + +`brew update` + +- Show formulae and casks that have a more recent version available: + +`brew outdated` + +- Search for available formulae (i.e. packages) and casks (i.e. native packages): + +`brew search {{text}}` + +- Display information about a formula or a cask (version, installation path, dependencies, etc.): + +`brew info {{formula}}` + +- Check the local Homebrew installation for potential problems: + +`brew doctor` diff --git a/pages/linux/brew.md b/pages/linux/brew.md deleted file mode 100644 index a8b2728afe8fef..00000000000000 --- a/pages/linux/brew.md +++ /dev/null @@ -1,35 +0,0 @@ -# brew - -> The Homebrew package manager for Linux. - -- Search for available formulas: - -`brew search {{text}}` - -- Install the latest stable version of a formula (use `--devel` for development versions): - -`brew install {{formula}}` - -- List all installed formulae: - -`brew list` - -- Upgrade an installed formula (if no formula name is given, all installed formulae are upgraded): - -`brew upgrade {{formula}}` - -- Fetch the newest version of Linuxbrew and of all formulae from GitHub: - -`brew update` - -- Show formulae that have a more recent version available: - -`brew outdated` - -- Display information about a formula (version, installation path, dependencies, etc.): - -`brew info {{formula}}` - -- Check the local Linuxbrew installation for potential problems: - -`brew doctor` diff --git a/pages/osx/brew.md b/pages/osx/brew.md deleted file mode 100644 index f500cc1d572e3a..00000000000000 --- a/pages/osx/brew.md +++ /dev/null @@ -1,36 +0,0 @@ -# brew - -> Package manager for macOS. -> More information: . - -- Search for available formulae and casks: - -`brew search {{text}}` - -- Install the latest stable version of a formula (use `--devel` for development versions): - -`brew install {{formula}}` - -- List all installed formulae: - -`brew list` - -- List installed formulae that are not dependencies of another installed formula: - -`brew leaves` - -- Upgrade an installed formula (if no formula name is given, all installed formulae are upgraded): - -`brew upgrade {{formula}}` - -- Fetch the newest version of Homebrew and of all formulae from GitHub: - -`brew update` - -- Display information about a formula (version, installation path, dependencies, etc.): - -`brew info {{formula}}` - -- Check the local Homebrew installation for potential problems: - -`brew doctor`