Introduction to Home Brew & WSL


Please login to enroll is this event.


#What is Homebrew
Homebrew is the packet manager for macOS. If you had Linux experiences, it works similarly to apt-get, yum, or packman. It can help you automatically install, update, and uninstall the packages without messing around with all the source codes. You can consider it as a command-line version of App Store. However, instead of downloading apps with user interfaces, you are now using commands to install packages and cli-apps.
#The benefit of Homebrew
Homebrew is, in some ways, the most powerful tool for developers on a Mac. What it does best is helping you set up your development environment. Instead of going to separate sites and building from their source code by following difficult instructions, you can use simple commands to finish your setup. You can also use single-line commands to update, uninstall or search for specific packages. It can help you link the package directly with your bash (or zsh and other environments), so that you can use your package right away. What’s more it can help you identify and use the necessary dependencies, so that you will not install duplicated packages or find your package not working. You can use it to easily maintain your development environment.
#How to install
The installation process is super easy. Just open your terminal and paste the install command from their [homepage](https://brew.sh). `/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"`Homebrew will be automatically installed in your local environment.
! Homebrew only works on macOS machines. If you are using Linux, please stick to your most comfortable package manager. For windows users, please refer to our WSL.
`Brew install {package name}`to install the package if you know it by the name. (You can always find the exact package name on their websites)
Homebrew will install packages to their own directory and then symlinks their files into /usr/local.
`Brew update` to update homebrew’s list of formulas
`Brew upgrade` to keep all your packages up-to-date
`Brew upgrade {package name}` to upgrade certain package
`Brew search {keyword}` to search for packages (formulas)
`Brew list` to list all the packages you’ve installed
`Brew cleanup` to automatically remove the outdated (and unneeded) packages
`Brew link {package name}` to symlink the package if you find yourself unable to use it in your terminal
`Brew cask` this is a package manager for most of the famous open-source macOS applications, you can use the similar syntax of brew by adding a cask in the middle to manage your applications using command line.
[Homebrew Homepage](https://brew.sh)
[Package lists](https://formulae.brew.sh)
[Package manager](https://en.m.wikipedia.org/wiki/Package_manager)

Subjects: command line home brew wsl



Status Open
Date Friday, February 8th, 2019
Time 3:00pm - 5:00pm
Location TEC - Classroom
Leader Mike Liu
Enrolled 5 of 30
The TEC (Technology Engagement Center) Classroom is in the Telcom Building. To get there, just walk down the stairs from Perkins/Bostock like you’re heading towards CIEMAS. When you get to the road halfway down, make a right and Telcom is the building ahead of you to the left. The Technology Engagement Center is the first floor, so just enter in the front of the building. The classroom is to the right of the entrance, adjacent to the center circular room. http://maps.duke.edu/map/?id=21&mrkIid=2765