The homebrew/core includes a list of command-line packages that you can install. Homebrew, by default, contains two lists of formulae: homebrew/core and homebrew/cask. To uninstall a cask, execute the following command: $ brew cask uninstall visual-studio-code To install a desktop application (cask), you use the brew cask install command: # install Visual Studio Code You can use Homebrew Cask to download and install desktop applications like Google Chrome, VS Code, Atom, and more.Ĭask is already included in Homebrew, so you don't need to install anything. Homebrew is not just limited to command-line tools. To clean up all the outdated downloads from your computer, use the following command: $ brew cleanup You use the uninstall command to completely remove a package: $ brew uninstall įor example, to remove Node.js (don't do it unless required), execute the following command: $ brew uninstall node To verify that Node.js downgraded version is linked successfully, use the following command: $ node -v Run the following command: $ brew install you need to unlink the currently installed Node.js version: $ brew unlink nodeįinally, you need to link the newly installed version of Node.js: $ brew link -force Let us say you want to downgrade Node.js from version 14 to 12. To upgrade all packages, run the upgrade command without specifying any package name, as shown below: $ brew upgradeĭowngrading a package is a little tricky with Homebrew.įirst of all, you need to use the search command to find the lower version of the package that you want to downgrade: $ brew search node To upgrade an already installed package (formula), just execute the following command: $ brew upgrade Homebrew also provides an online package browser to browse all the available packages for macOS and Linux. To install new formula, you use the following command: $ brew install įor example, to install the Node.js default version with Homebrew, you execute the following command: $ brew install node Installing PackagesĮach package in Homebrew is called a formula. Make sure you update Homebrew before installing or updating any software. To update Homebrew to its latest version, run the following command in your terminal: $ brew update Follow the instructions printed on the screen to finish the installation. The above command executes the installer script provided by the Homebrew team. Now you can install Homebrew with the following command: $ ruby -e " $( curl -fsSL )" Xcode is not required to use Homebrew, but some other packages will need Xcode's command-line tools.Įxecute the following command in your terminal to install Xcode's command-line tools package: $ xcode-select -installįollow the instructions on the screen to complete the installation of Xcode's command-line tools. bash or zsh) Installing Homebrewīefore we install Homebrew, you need to install Xcode's command-line tools package. A Bourne-compatible shell for installation (e.g.Command Line Tools (CLT) for Xcode or Xcode ( click here to download).In this article, you will learn how to install and use Homebrew on your macOS machine. It downloads and installs binaries, applications, and utilities using your terminal. Homebrew is a popular package manager for the macOS operating system.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |