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

Поделиться
HTML-код
  • Опубликовано: 10 окт 2024

Комментарии • 142

  • @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 года назад +10

    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 Год назад +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.

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

  • @ulfgj
    @ulfgj 5 лет назад +7

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

  • @_Mohanned
    @_Mohanned 23 дня назад

    Wonderful video, thank you for this. Even after 5 years this is still helpful!
    The cask command is outdated and you must now use `brew install --cask firefox` as an example. Very good video nonetheless!

  • @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.

  • @MechF29
    @MechF29 4 года назад +3

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

  • @jonathanfridja3010
    @jonathanfridja3010 2 года назад +2

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

  • @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"

  • @MarcMcRae
    @MarcMcRae 4 года назад +1

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

  • @kalyanparshant
    @kalyanparshant 3 года назад

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

  • @dominik-urban
    @dominik-urban 5 лет назад +1

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

  • @fredli6962
    @fredli6962 4 года назад +1

    A good and deep introduction. Thank you.

  • @djkasperg
    @djkasperg 2 года назад

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

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

  • @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.

  • @victorespinoza355
    @victorespinoza355 2 года назад

    Great Video dude. All of your videos are great

  • @pressrepeat2000
    @pressrepeat2000 5 лет назад +1

    Awesome and super helpful video, thank you.

  • @criptoalisson
    @criptoalisson 2 года назад

    Your video helped a lot sir. Thanks!

  • @RyanJohnson
    @RyanJohnson 4 года назад +2

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

  • @w9zsj
    @w9zsj 3 года назад

    Terrific job on HomeBrew. I'll be back.

  • @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?

  • @andrewcompasso7289
    @andrewcompasso7289 3 года назад

    Thx
    it was exactly i was looking for

  • @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?

  • @imjvdn1458
    @imjvdn1458 4 года назад +1

    Thank you bro

  • @АндрейБорисов-и4о
    @АндрейБорисов-и4о 3 года назад

    Thanks Corey for this video!

  • @mzuen3209
    @mzuen3209 5 лет назад +1

    So helpful ,thanq!

  • @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!

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

  • @pandanamin7104
    @pandanamin7104 4 года назад +2

    You sir are a Python Knight! hehe

  • @aliaksandrhn1
    @aliaksandrhn1 4 года назад

    Terrific video, thank you!

  • @leonardoegavaudan2813
    @leonardoegavaudan2813 3 года назад

    Thank you, great video

  • @gevanlappido1304
    @gevanlappido1304 4 года назад

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

  • @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?

  • @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!

  • @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...

  • @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?

  • @ImJusWatching
    @ImJusWatching 3 года назад

    thanks for this!

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

  • @hayatasuenaga7028
    @hayatasuenaga7028 3 года назад

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

  • @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.

  • @carapungo
    @carapungo 3 года назад

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

  • @jw7196
    @jw7196 4 года назад +6

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

    • @ambientnostalgia9231
      @ambientnostalgia9231 4 года назад

      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/

  • @devope
    @devope 3 года назад

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

  • @Shubham__Saroj
    @Shubham__Saroj 2 года назад

    Awesome

  • @SofianMW
    @SofianMW 3 года назад

    great!

  • @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...

  • @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 ?

  • @xderiwx
    @xderiwx Год назад

    Are there any downsides to using Homebrew?

  • @erdiksha8104
    @erdiksha8104 4 года назад +1

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

  • @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?

  • @Violet_Patrick
    @Violet_Patrick 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.

  • @yanzhou677
    @yanzhou677 3 года назад +1

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

  • @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 `'

  • @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?

  • @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.

  • @ETHERSNOW
    @ETHERSNOW 3 года назад

    what is the colortheme you are using for your terminal

  • @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.

  • @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?

  • @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??

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

  • @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.

  • @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.

  • @jasonvictor1798
    @jasonvictor1798 4 года назад

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

  • @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...

  • @dmr9366
    @dmr9366 5 лет назад

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

  • @jscubillos
    @jscubillos 8 месяцев назад

    Thank so much!

  • @yagoa
    @yagoa 3 года назад

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

  • @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!

  • @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...

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

  • @christophercarr5865
    @christophercarr5865 3 года назад +2

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

  • @ETHERSNOW
    @ETHERSNOW 3 года назад

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

  • @bedsheet61
    @bedsheet61 2 года назад

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

  • @geethar797
    @geethar797 Год назад

    when i install homebrew it is saying session timed out

  • @Sam-bn7jk
    @Sam-bn7jk 3 года назад

    it doesn't work, brew help command not found

  • @MISifan
    @MISifan 3 года назад

    How to install it for M1 mac?

  • @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.

  • @cruxinterfaces
    @cruxinterfaces 5 лет назад +1

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

  • @Angelic_voice1
    @Angelic_voice1 Год назад

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

  • @morganziomek8976
    @morganziomek8976 2 года назад

    as well

  • @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.

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

  • @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 5 лет назад

      Its called Scoop
      ruclips.net/video/a85QLUJ0Wbs/видео.html

  • @danielosornio1891
    @danielosornio1891 5 лет назад

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

    • @matthewderespinis5266
      @matthewderespinis5266 5 лет назад

      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?

  • @kalacestorm5255
    @kalacestorm5255 4 года назад

    mine doesnt download anything

  • @jeje7880
    @jeje7880 4 года назад

    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: $"

  • @angeloc700
    @angeloc700 3 года назад

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

  • @2kmodz830
    @2kmodz830 3 года назад

    how do i enter my password ?

  • @asgharkhan4665
    @asgharkhan4665 4 года назад

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

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

  • @vaishalisaini10
    @vaishalisaini10 4 года назад

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

    • @CodyHvision
      @CodyHvision 4 года назад +2

      Your password to log into your Mac.

  • @arturleperoke3205
    @arturleperoke3205 3 года назад

    using cask today it would be:

  • @samibartu7433
    @samibartu7433 4 года назад

    No such file or directory

  • @AbdulQayyum-zw8wc
    @AbdulQayyum-zw8wc 3 года назад

    so what the password ?

  • @AbdulQayyum-zw8wc
    @AbdulQayyum-zw8wc 3 года назад

    i stuck at password

  • @MubarakMusse32
    @MubarakMusse32 3 года назад

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

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