Homebrew Tutorial: Simplify Software Installation on Mac Using This Package Manager

Поділитися
Вставка
  • Опубліковано 7 вер 2024

КОМЕНТАРІ • 141

  • @coreyms
    @coreyms  5 років тому +24

    Hey everyone. I'm going to be releasing a Python video today at noon showing how I wrote a script to analyze a JSON API of Homebrew Packages. You don't need to use Homebrew or be on a Mac to follow along. It will be great practice for anyone learning Python.
    I will also be releasing a video next week showing how I use Homebrew to set up a new MacBook from scratch using scripts. Hope everyone is having a great week!

    • @sandeepvk
      @sandeepvk 5 років тому

      Hi, Which Mac book did you get ? The touch bar is a bit of a bummer huh ?

    • @coreyms
      @coreyms  5 років тому +3

      @@sandeepvk I got a Refurbished 2017 MacBook Pro that was the deal of the day on Amazon a few weeks ago. I probably won't use the touch bar all that much, but I also don't mind it either. I could definitely do without it. I'm kind've a minimalist, so I could definitely do without extra bells and whistles that don't actually save me much time or convenience.

    • @sandeepvk
      @sandeepvk 5 років тому

      @@coreyms Couldn't agree more !

  • @SJ-vc2tz
    @SJ-vc2tz 3 роки тому +9

    Omg dude, you're everywhere. I mean every time I try to find an explanation on youtube I get your videos and they're all great :) Thanks!

  • @saschageidel1471
    @saschageidel1471 11 місяців тому +1

    Thank you for the nice video! Although some information are already outdated (cask must now be called using --cask brew search doesn't list the available packages) it was very usefull. Since I already know the linux commands that you used, it is a very straight forward explanation to my main interest which was the access to homebrew.

  • @ulfgj
    @ulfgj 5 років тому +7

    so ur looking for about ...
    corey has a video on it.
    take my money!

  • @fab_uclosetonposhmark1591
    @fab_uclosetonposhmark1591 4 роки тому +2

    This tutorial was very helpful. I was trying to automate something using Python, homebrew, selenium and NumPy. I never worked with any of these nor have I ever really worked in a terminal setting. Your video along with a little additional research of my own helped me solve my issue and get my automation up and running. Thank you!

    • @vaishalisaini10
      @vaishalisaini10 4 роки тому

      what is the password the terminal asks for? Do we have to make up some password for future or it requires some password that is all ready set ? I am stuck at the password stage! :/

    • @Angelic_voice1
      @Angelic_voice1 Рік тому

      @@vaishalisaini10 same here

  • @MechF29
    @MechF29 4 роки тому +3

    Thanks so much for proving that the Mac OS are really powerful when known how to use properly!

  • @hyper8547
    @hyper8547 5 років тому +8

    Hi, I love the way you teach and turn complicated stuff into simple explanatory methods. What is your background, and how long did it take for you to master all these systems? My goal is to learn Machine Learning and become an expert in the area. I am just getting started, so I have a long way to go, beginning from zero.

  • @divyanshrai4138
    @divyanshrai4138 3 роки тому +3

    As of Homebrew 2.6.0 brew cask has been deprecated in favor of brew. So depending on your version you might have to use "brew install --cask firefox"

  • @jonathanfridja3010
    @jonathanfridja3010 2 роки тому +2

    absolutely amazing, so organized. very clean and clear tutorial over this tool and its usages

  • @jw7196
    @jw7196 4 роки тому +6

    My mac terminal tells me "-bash: xcode-select: command not found" when I run "xcode-select --install"
    ☹️

    • @ambientnostalgia9231
      @ambientnostalgia9231 3 роки тому

      You probably found the answer considering this was a few months ago, but you most likely need to install xcode itself. You can find it here: developer.apple.com/download/

  • @MagShell172
    @MagShell172 4 роки тому +1

    Hi please help, I once installed brew and it worked but now it’s not active and every time I’m getting the -bash: brew: command not found. What should I do?

  • @totem168
    @totem168 4 роки тому

    if there is app that didn't available in homebrew, is there possibility to install it with homebrew? if there is possibility, how can you install that apps? I know the apps available in mac port, but if I am install mac port, there will be apps that I cannot install since it unavailable in mac port, so I am in kinda have dilemma.
    The apps that I want to install is PAN a news reader from rebel base. it was available in homebrew until version 0.36 if I am not mistaken, but currently it unavailable for homebrew after it got deleted.

  • @kalyanparshant
    @kalyanparshant 3 роки тому

    Hats off to you sir for making it so simple to understand.

  • @MarcMcRae
    @MarcMcRae 4 роки тому +1

    Always learn so much useful info from your videos Corey! Nice clear explanation too. Thank you.

  • @charlesbovalis6591
    @charlesbovalis6591 4 роки тому

    Still not clear on update vs upgrade. If "$brew update" updates all our installed packages, then doesn't this mean that the update command will fetch the latest/updated version of the corresponding installed package ? How exactly does this differ from the "$brew upgrade" command ?
    Also, what if we want to update/upgrade the actual homebrew package itself ?
    Thank you in advance for your time.

  • @dominik-urban
    @dominik-urban 5 років тому +1

    A good overview and in depth explanation to homebrew. 🤓 Thank you so much!
    👍🙂

  • @xeskan
    @xeskan 3 роки тому +1

    'brew search' has been updated to 'brew formulae' command if you want to list the packages that can be installed using Homebrew

  • @darrenz5557
    @darrenz5557 3 роки тому +1

    best thing about homebrew is not having to set PATH or run sudo on everything carelessly and end up chown'ing everything

  • @zackallen8759
    @zackallen8759 3 роки тому

    ive installed home-brew twice now, it says successful. I've tried the brew command and brew help, and all I get is command not found...

  • @rvb6516
    @rvb6516 3 роки тому

    ==> Downloading and installing Homebrew...
    fatal: '/usr/local' does not appear to be a git repository
    fatal: Could not read from remote repository.
    Please make sure you have the correct access rights
    and the repository exists.
    Failed during: git fetch --force origin
    i'm suck with this...

  • @im.rakesh0827
    @im.rakesh0827 3 роки тому

    Everything is working properly but the package manager ‘cask' is not working anymore and it shows an error. That the cask does not exist. So can you tell me why this is happening.

  • @fredli6962
    @fredli6962 4 роки тому +1

    A good and deep introduction. Thank you.

  • @erickleefeld4883
    @erickleefeld4883 3 роки тому

    Got a question for you about how all this works on cask apps. I like to to organize my Applications directory structure - for example, moving things like VLC and GIMP into a special /Applications/Multimedia folder, some others into /Applications/Internet, etc.
    Since the Homebrew cask installation automatically moves things to /Applications, would it cause any future conflicts for me to further move something from there?

  • @johnwinstondarby
    @johnwinstondarby 2 роки тому

    Clean, understandable and specific. Thank you. My MacBook Pro arrives soon. As a Windows user, I find your tutorial helpful and hopeful…QQ: where might I find a list of software (casks) such as Firefox and Chrome which Homebrew can install?

  • @djkasperg
    @djkasperg 2 роки тому

    You're a great teacher. Thank you so much for your work.

  • @sevabratabose995
    @sevabratabose995 4 роки тому

    I had brew installed on my mac, I get into problems while trying to run "brew update".
    I tried to uninstall the brew with the command
    ruby -e "$(curl -fsSL raw.githubusercontent.com/Homebrew/install/master/uninstall)"
    I don't rememeber exactly if the command was success or not.
    But now when I am trying to install brew I am getting below error message:
    Downloading and installing Homebrew...
    remote: Enumerating objects: 74, done.
    remote: Counting objects: 100% (74/74), done.
    remote: Compressing objects: 100% (74/74), done.
    error: RPC failed; curl 18 transfer closed with outstanding read data remaining
    fatal: the remote end hung up unexpectedly
    fatal: early EOF
    fatal: index-pack failed
    Failed during: git fetch origin --force
    Please suggest me option to resolve the issue.

  • @josefigueroa7146
    @josefigueroa7146 5 років тому +1

    Just found your channel and subscribed. Looking forward for a video on installing multiple applications on a new Mac.

    • @coreyms
      @coreyms  5 років тому

      It’s already out. It’s my latest video.

  • @RyanJohnson
    @RyanJohnson 4 роки тому +2

    Thanks for keeping things stock so we can follow along with your videos :)

  • @VulcanOnWheels
    @VulcanOnWheels 4 роки тому

    I did not know about the brew home command. Homebrew sometimes shows a lot of closed pull requests. Assuming I should not be getting them, how can I get rid of them?

  • @jeje7880
    @jeje7880 3 роки тому

    I need help.
    This is the link that my Homebrew is trying to get me to paste in my terminal:
    $ /bin/bash -c "$(curl -fsSL raw.githubusercontent.com/Homebrew/install/master/install.sh)"
    It doesn't work. I only receive "zsh: command not found: $"

  • @yanzhou677
    @yanzhou677 3 роки тому +1

    brew cask install mypackage does not work anymore in my case, use brew install --cask mypackage instead.

  • @ironthehardz
    @ironthehardz 3 роки тому

    hi .... i know the video is old but....
    how do you do
    "coreyschafer at coreys-mac in desktop
    $"
    i mean your "$" at the new line
    i want mine like that too please

  • @pressrepeat2000
    @pressrepeat2000 4 роки тому +1

    Awesome and super helpful video, thank you.

  • @frenchmike
    @frenchmike 3 роки тому

    sorry bro, I am not clear on the diff between brew update and brew upgrade. it seems u said they both update our packages??

  • @todosniveles9406
    @todosniveles9406 3 роки тому

    Thanx for this. A question for the comments section :) Is there a way one could remove dependencies that have been installed for a specific formulae-package when uninstalling it?

  • @w9zsj
    @w9zsj 3 роки тому

    Terrific job on HomeBrew. I'll be back.

  • @victorespinoza355
    @victorespinoza355 Рік тому

    Great Video dude. All of your videos are great

  • @jingyuchang1885
    @jingyuchang1885 5 років тому +1

    Thanks very much for another informative and extremely useful video.

    • @sweetimpala
      @sweetimpala 4 роки тому

      CAn you kindly explain to me what this is for?

  • @varunpoondi2772
    @varunpoondi2772 4 роки тому

    Hey, I'm trying to install emacs on my Mac and brew has emacs as one of the packages. When I type in "brew cask install emacs" in the terminal,, is says that emacs is downloaded. But, when I type in emacs, it says that command is not found. Can someone help me with this?

    • @ShefTimi
      @ShefTimi 4 роки тому

      Try "brew install emacs" to install emacs, since it's a formulae app

  • @iseeflowers
    @iseeflowers 4 роки тому

    What is the difference of installing git with letting Mac install the default from the prompt and going to homebrew to install it ?

  • @A_Catalyst
    @A_Catalyst 5 років тому +3

    Do you have any recommendations for entirely uninstalling previously installed versions of Python for Mac? I’m not taking about the Python 2 that is automatically built into Macs, but Python downloaded from online, for example 3.x. I want to do this so that I can start using HomeBrew and not worry about big clutters of Python packages in my system. Great video!

  • @yagoa
    @yagoa 3 роки тому

    Is there a way to build from source with Homebrew if there is no brew specific repo on github?

  • @joeg816
    @joeg816 5 років тому +1

    Another good video. Thanks...
    Just curious, what is the advantage of someone hosting an alternate "tap" repo? Why would Heroku have their own instead of contributing their package to the main repo?

  • @naveen1261
    @naveen1261 4 роки тому

    What is the good way to install softwares? Using brew or official installers? I heard there might be issues with brew install. Correct me if I’m wrong

  • @jamesmachacek1253
    @jamesmachacek1253 3 роки тому

    Great video Thanks! Love the way you have Terminal set up with the different colors, how do I set that up on mine, This is my first Mac and really loving it...

  • @criptoalisson
    @criptoalisson 2 роки тому

    Your video helped a lot sir. Thanks!

  • @pandanamin7104
    @pandanamin7104 4 роки тому +2

    You sir are a Python Knight! hehe

  • @bigdeltaguy4572
    @bigdeltaguy4572 4 роки тому +1

    dude this helped me so much thankyou soo much.

  • @Ghasakable
    @Ghasakable 5 років тому

    Thank you very much for this video so helpful, could you please make a tutorial on emacs gnu and how to use it with python or latex?
    Again thank very much, your channel is one of the greatest resources to learn something new and make me feel professional after applying your tutorials!

  • @haseebj3424
    @haseebj3424 3 роки тому

    keywords are working but why do I get warnings saying "Warning: Calling 'brew search' with no arguments to output formulae is deprecated! Use 'brew formulae' instead". ANYONE CAN EXPLAIN PLS!

  • @VSongu
    @VSongu 4 роки тому

    I have this message: "Cant's install the software because it is not currently available from the Software Update server". I can suggest this is due to what I have updated my Catalina OS on my unsupported Mac 5.1 with the help of dosdude1 patch (dosdude1.com/catalina/). Any help

    • @VSongu
      @VSongu 4 роки тому

      any help guys

  • @jaygreg6329
    @jaygreg6329 5 років тому +2

    I love using HomeBrew. I used to use 'apt' and 'apt-get' before I understood it better. I love the terminal too. It is clean and organized and you can control what is on your machine. I am a total convert to brew on my MacBook.
    What is your suggestion for Javascript package management on my MacBook? I am just starting to work with it and have started with 'npm' but I have also seen 'yarn' which seems popular. I want something that will work nicely with ReactJS, Brew, Django, etc. So 'npm'? 'yarn'? or something else for my MacBook?

    • @coreyms
      @coreyms  5 років тому +1

      I don’t do a lot of JavaScript work these days, but when I do I use NPN. I haven’t tried Yarn though, so I have nothing against it.

    • @jaygreg6329
      @jaygreg6329 5 років тому +2

      Okay. Thanks for the reply. By the way I am a huge fan of your work here. Thanks for all of the great content. You have had a great impact on me. Thanks.

  • @bedsheet61
    @bedsheet61 2 роки тому

    i hit an error while installing homebrew. it says sudo access password

  • @Queenbelieveit
    @Queenbelieveit 3 роки тому

    How did you get the $ sign prior to typing brew..... I have % but was able to install home-brew.... I am new and a student .... this is one the installations we needed to do...

  • @hayatasuenaga7028
    @hayatasuenaga7028 3 роки тому

    Thanks this is very useful. But cask seems to be no longer a brew command...

  • @nicolashuyghe7730
    @nicolashuyghe7730 3 роки тому

    Corey, brew cask home pycharm is not working anymore on the new version. Homebrew website recommends to us brew home --cask pycharm instead

  • @erdiksha8104
    @erdiksha8104 4 роки тому +1

    ...brew comand not found.....
    Plz help me sir

  • @andrewcompasso7289
    @andrewcompasso7289 3 роки тому

    Thx
    it was exactly i was looking for

  • @jeanren6020
    @jeanren6020 5 років тому

    Thanks for sharing this video.
    I have the below problem, how to fix?
    ~ mac$ brew search pycharm
    /usr/local/Homebrew/Library/Homebrew/global.rb:12:in `require': cannot load such file -- active_support/core_ext/object/blank (LoadError)
    from /usr/local/Homebrew/Library/Homebrew/global.rb:12:in `'
    from /usr/local/Homebrew/Library/Homebrew/brew.rb:23:in `require_relative'
    from /usr/local/Homebrew/Library/Homebrew/brew.rb:23:in `'

  • @gevanlappido1304
    @gevanlappido1304 4 роки тому

    Could you share your script you use to set up new machines?
    Great video, thank you 😃

  • @mzuen3209
    @mzuen3209 5 років тому +1

    So helpful ,thanq!

  • @ETHERSNOW
    @ETHERSNOW 3 роки тому

    does anyone know what colortheme he is using for his terminal ?

  • @dmr9366
    @dmr9366 5 років тому

    How can we take forensic image of macintosh drive using homebrew?

  • @jasonvictor1798
    @jasonvictor1798 4 роки тому

    Can someone explain what symlinks are? and why home brew uses it?

  • @xderiwx
    @xderiwx Рік тому

    Are there any downsides to using Homebrew?

  • @user-tz5bz4cz9q
    @user-tz5bz4cz9q 3 роки тому

    Thanks Corey for this video!

  • @ETHERSNOW
    @ETHERSNOW 3 роки тому

    what is the colortheme you are using for your terminal

  • @aliaksandrhn1
    @aliaksandrhn1 4 роки тому

    Terrific video, thank you!

  • @imjvdn1458
    @imjvdn1458 4 роки тому +1

    Thank you bro

  • @leonardoegavaudan2813
    @leonardoegavaudan2813 3 роки тому

    Thank you, great video

  • @geethar797
    @geethar797 11 місяців тому

    when i install homebrew it is saying session timed out

  • @Angelic_voice1
    @Angelic_voice1 Рік тому

    hello please when it shows password, what password is it requesting ???

  • @devope
    @devope 3 роки тому

    14:05 Now it is `brew install --cask firefox`

  • @carapungo
    @carapungo 3 роки тому

    thanks for sharing bro. For Big Sur the search command should be brew formulae

  • @ImJusWatching
    @ImJusWatching 3 роки тому

    thanks for this!

  • @InternationG
    @InternationG 5 років тому

    Is macos better for programming than windows? Or is it just a matter of branding and personal preference...

    • @coreyms
      @coreyms  5 років тому +6

      It's a matter of personal preference. I have always enjoyed Linux and MacOS over Windows because I am more comfortable with their command-line tools and feel more productive.

  • @Sam-bn7jk
    @Sam-bn7jk 3 роки тому

    it doesn't work, brew help command not found

  • @TripleYair
    @TripleYair 4 роки тому +3

    How do I put my password in it won’t work

    • @asgharkhan4665
      @asgharkhan4665 4 роки тому

      Did u figure out how to do it? please let me know how

    • @juno7424
      @juno7424 4 роки тому +1

      @@asgharkhan4665 just type it and press enter, it wont show what you're typing. Its your computer's password.

  • @manishpundir6743
    @manishpundir6743 4 роки тому +3

    plz help
    $ brew help
    bash: brew: command not found

    • @charan_75
      @charan_75 4 роки тому

      Can you try this?
      /bin/bash -c "$(curl -fsSL raw.githubusercontent.com/Homebrew/install/master/install.sh)"

    • @kuponokealiinohomoku4095
      @kuponokealiinohomoku4095 4 роки тому

      @@charan_75 mine makes me put in a password but I can't type anything in?

    • @Claudible
      @Claudible 4 роки тому

      Kupono Kealiinohomoku Yes, you can. The terminal doesn’t show it but just type ahead and press Enter. You’ll see that it works.

  • @Shubham__Saroj
    @Shubham__Saroj 2 роки тому

    Awesome

  • @danielosornio1891
    @danielosornio1891 5 років тому

    so whats the password that needs to be entered wont let me type anything in there? Corey Schafer

    • @matthewderespinis5266
      @matthewderespinis5266 4 роки тому

      Same problem Im having. How the hell do I put a password in? You can't type in terminal once you've pasted that homebrew command in

    • @TripleYair
      @TripleYair 4 роки тому

      unknown uknowm what’s the key command on a keyboard?

    • @aryamanparpia4098
      @aryamanparpia4098 3 роки тому

      did you find the solution?

  • @MISifan
    @MISifan 3 роки тому

    How to install it for M1 mac?

  • @christophercarr5865
    @christophercarr5865 3 роки тому +2

    More advanced Linux users will often find Homebrew to be rather crappy, with questionable security decisions having been made.

  • @SofianMW
    @SofianMW 3 роки тому

    great!

  • @asgharkhan4665
    @asgharkhan4665 4 роки тому

    Can someone please tell me how to put in the password its not letting me type anything

  • @morganziomek8976
    @morganziomek8976 2 роки тому

    as well

  • @mahmoudezzel-dean7620
    @mahmoudezzel-dean7620 5 років тому

    is there is something like homebrew but for widows

    • @jaygreg6329
      @jaygreg6329 5 років тому +1

      I am unfamiliar with using Windows but with a quick googling I saw that there seems to be some recent support for Windows in version 2.0.0 (with some caveats it looks like) but I think that a lot of people use Choclatey for Windows package management. I would start looking there unless you get advice from someone who has more experience with Windows.

    • @coreyms
      @coreyms  5 років тому

      I believe Homebrew 2.0 will work with Windows 10 using the Linux Subsystem. Other than that I’m not too sure. I Googled some results and found this link that might be helpful:
      www.quora.com/Does-the-Windows-OS-have-a-package-manager-like-Homebrew-in-the-Mac-OS

    • @nikhilt3755
      @nikhilt3755 5 років тому

      @@jaygreg6329 chocolatey install package_name
      using from few months

    • @aayush-
      @aayush- 5 років тому

      Scoop (scoop.sh) is a pretty good package installer for Windows. Works exactly the way Homebrew does, and fetches application setups from source. You dont even need admin for scoop apps. So now you can use Linux cli tools in cmd/ps. Usage is of the form `scoop [install/info/search/list/uninstall/cleanup] `. Checkout Github readme for installation instructions: github.com/lukesampson/scoop

    • @ksonsouchou
      @ksonsouchou 4 роки тому

      Its called Scoop
      ua-cam.com/video/a85QLUJ0Wbs/v-deo.html

  • @kalacestorm5255
    @kalacestorm5255 4 роки тому

    mine doesnt download anything

  • @cruxinterfaces
    @cruxinterfaces 5 років тому +1

    Nice work, we will be at Knowledge Fest please check us out.

  • @angeloc700
    @angeloc700 3 роки тому

    Noooooo...don’t cut-paste commands from the Internet. Otherwise, great video!

  • @staylo2844
    @staylo2844 3 роки тому

    I tried to install homebrew on my MacBook Catalonia. It says 'Installation successful!'. When I put the code in *brew help* all the stuff that came up for you did not happen.
    I think it may be because the * /usr/local/bin is not in your PATH.*
    *Already up-to-date.
    Warning: /usr/local/bin is not in your PATH.
    ==> Installation successful!
    ==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
    Read the analytics documentation (and how to opt-out) here:
    docs.brew.sh/Analytics
    No analytics data has been sent yet (or will be during this `install` run).
    ==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
    github.com/Homebrew/brew#donations
    ==> Next steps:
    - Run `brew help` to get started
    - Further documentation:
    docs.brew.sh
    Sarah@JD-Salinger-2 ~ % `brew help
    bquote>*
    Could you let me know if this is the issue and how to fix it.
    Thank you,
    Sarah

  • @2kmodz830
    @2kmodz830 3 роки тому

    how do i enter my password ?

  • @vaishalisaini10
    @vaishalisaini10 4 роки тому

    what is this password it demands? i am stuck at the password part

    • @canDOcodster
      @canDOcodster 4 роки тому +2

      Your password to log into your Mac.

  • @MubarakMusse32
    @MubarakMusse32 3 роки тому

    16/12/2020
    brew search | wc -l
    5379

  • @samibartu7433
    @samibartu7433 4 роки тому

    No such file or directory

  • @arturleperoke3205
    @arturleperoke3205 3 роки тому

    using cask today it would be:

  • @AbdulQayyum-zw8wc
    @AbdulQayyum-zw8wc 3 роки тому

    so what the password ?

  • @AbdulQayyum-zw8wc
    @AbdulQayyum-zw8wc 3 роки тому

    i stuck at password

  • @linuxxxunil
    @linuxxxunil Рік тому

    we can't like your videos when watching these from your website. no like button.

  • @MichaelTrxn
    @MichaelTrxn 3 роки тому

    Why would you bother to use this to install apps when you could just do it on safari?

    • @christophercarr5865
      @christophercarr5865 3 роки тому

      Do it _on_ Safari? You mean downloading a .dmg from the Web?

    • @jumanjiwarlord
      @jumanjiwarlord 3 роки тому

      Some of the apps are just command line tools that probably won’t have any sort of .dmg installer. If you’re not aware of such tools, you probably have no use for them. We’re talking command line here, not GUI double clicking .dmg’s. As with anything terminal related, if ur scripting skills are good enough you can do some powerful stuff...