The permissions end up all screwed up with the root user owning a lot of the config files of the software you install. You also open up your computer to the possibility of malicious packages having root access. Best option is to uninstall and reinstall if you end up with a root install.
Your explanations are clear, to the point. Could you make more videos like this for newbies about macOS hard disk, file format, how it is different from Windows making C, D etc drive. How to connect an old perfectly working Bamboo Wacom tablet that apple just made it obsolete, though it works fine in linux.
Great tutorial Later in the proceedings I had to look up the way you can update the Brew Bundle File content, by doing: brew bundle dump --force. I don't know if you eventually told id. Thanks for the great tutorial on Brew!
I learn a lot from this video, I just hope you can spend some time to explain what cakebrew is and what is it for in more details, nonetheless its a great video.
Great video, have installed Homebrew after seeing it on a couple of other YT channels on my new iMac (first Mac). Yours is by the far the best description of how to install and use Homebrew and Cakebrew (something the other channels never mentioned), thanks for the detailed video.
Here are some commands I use often: brew leaves # for formulae brew list --cask # for applications brew uses --installed [formula] # to understand dependency brew autoremove # after uninstall formula and understanding the dependency
Thank you! As a previous Windows/Ubuntu user who just got my first Mac, this was incredibly helpful and I now feel much more comfortable in this new system. Saw this a bit too late though and I already painstakingly installed a bunch of applications the "normal" mac way, oops
I'm starting to get serious about moving to Nix on all my machines - my Christmas vacation project is to really understand Nix and hopefully make a video on it in the future.
welcome back!! quite strange, another channel I was watching a couple of days ago mentioned one of your posts, I thought ‘oh yeah what happened to that channel’ and here you are :)
I’ve also seen a couple of videos that reference your iPad to RPi video. One of them is ua-cam.com/video/uyF_4NO3JQI/v-deo.html. It was a great concept that’s I’m starting to make better use of by setting up Kali PiTail on a Raspberry Pi Zero 2W. I’m also looking forward to new iPad and/or Raspberry Pi videos. Welcome back!
@@mcal27 Great. Lots of interesting developments in the iPad coding space in the last year or so. With VSCode Remote getting real attention, and with code-server running on RPi there are plenty of interesting options.
Maybe you can provide me with some guidance, I installed homebrew in my Mac, I am trying to find a way to close certain apps when the system goes to sleep (mainly to save battery). I tried using sleepwatcher using different configurations, but it's not working
Just moving back to Mac, I’ve been in the Windows wilderness since 2017. Always loved the OS it’s just Apple stopped launching hardware at the time. I’ll definitely give this a try on my new Mac studio.
Better late than never. Apple silicon and the hardware. In 2017 they just seemed focused on the phone and laptops. I left before the iMac Pro was launched and there had been very little on the hardware side for years.
great video! As a "noob" how can I find brew commands? is there a manual? I think the hardest part of terminal in general is knowing commands. I can navigate pretty well but searching and "knowing" commands are harder. like, now I know the commands you told me, but how do I know others commanda and what the apps you installed actually do? Firefox is easy, but "wget", I'd have to google that for example
For sure. You can get a summary with `brew help` and then each command can give further help so, `brew help install` for example. There is an extensive manual online at: docs.brew.sh/
I enjoy your content and use brew myself. However, I’m perhaps a little weird but I usually like to install my apps (casks) from the official website… but I use brew for everything else like CLI tools, etc. Perhaps I’m just stupid or doing more work to install things, I don’t know. Btw, if I remember correctly, you’re a emacs user? Do you have any videos getting started with emacs on the Mac? Or any guides how you set up and perhaps a basic config..?
Welcome back, love your content! Using Homebrew to manage macOS GUI apps is something I had never thought about, but since I tend to archive all the installers, do you know if there is a way to retain the downloaded .dmg files? Thanks!
Thanks! Homebrew retains all install packages by default because they might be needed. You can find them in the cache directory with this command: find -E "$(brew --cache)" -type f -regex '.*\.(dmg|pkg|zip)'
It's been a long while since I used Macports but I remember it needing root access, which Homebrew doesn't, and I remember it always compiling from source which meant it was a little slower. That said, both are good solutions, and better to use one of them rather than none of them!
@@tech_craft thank you. That makes sense. My company does not provide either of these solutions so I need sudo to start in both cases :( the only program I really need is mpich for scientific computing and compiling from source might result in more optimized binary. I will give homebrew a try.
It definitely makes sense to run emacs as a service/daemon and then connect to it using `emacsclient`. This works by default with HomeBrew install of Emacs. You can certainly use Emacs in the terminal as well, but I much prefer to use the GUI mode. There's a lot of extra features and it's a smoother experience on both Mac and Linux.
I tried installing homebrew through terminal, and it won't let me type in my system password. EDIT: IF you guys have that problem, it actually reads what you type, it just doesn't show it on screen (masked or otherwise). Weird design decision, imo. Just a heads up to other people.
Good question. I use both plus asdf/sdkman. Homebrew I use for most utilities and tools, things like vim, emacs, syncthing, jq, git etc. I use Docker for 'server'-type stuff, things like PostgreSQL, envoy, nginx and so on. Then I also use asdf/sdkman for software where I need to run multiple versions in parallel. For my job I need multiple versions of Java, Go, NodeJS etc, and asdf is great for that. I install asdf using Homebrew!
The title(s) or the video(s) could be a bit more descriptive. The content of your channel is, in my humble opinion, NOT of low quality and thus it does NOT need clickbaits.
I won’t touch homebrew with a barge pole. Yes it’s simple, yes it can be useful, but it can screw up your local Python settings, it’s a security risk and the project have turned out to be pretty toxic towards the professional Mac management community. I’ve been using Jeff Geerling’s Ansible playbook ( ua-cam.com/video/1VhPVu5EK5o/v-deo.html ) for configuring my Mac, as learning Ansible will also help you for wider infrastructure tasks.
Have you tried Nix and NixOS? I'm seriously thinking of moving from Arch to NixOS on the Linux side. I did run Nix on the Mac for about ~4 months but I always felt like I was going against the grain.
I appreciate the sentiment of this but there's a lot of nuance to this issue. Copy and pasting from Homebrew is a lot different from copy-and-paste from some random forum. You also have to consider your own personal threat model. My model assumes that copy-paste once from a trusted site is a lot better than the inevitable copy-paste from hundreds of different sites to install all the different packages.
Could you plz help me with this shortcut I made Rob. When the pdf is generated, all the images used become blurry. The photos are actually very clear. I use in sharesheet
…. “==>. Home brew is run entirely by unpaid volunteers. Please consider donating: …” I have NEVER seen a UA-camr talk about donating to the authors of software that they use, many times using the software to help them create their UA-cam content and make $$$. - i -s
I am unable to install Homebrew See Error Below. ###---------------------------------------------------------- ==> /usr/bin/sudo /usr/sbin/chown -R mac:admin /usr/local/Homebrew ==> Downloading and installing Homebrew... Updating files: 100% (2975/2975), done. HEAD is now at 4b3d64d30 Merge pull request #14453 from Rylan12/languages-in-cask-api error: Not a valid ref: refs/remotes/origin/master fatal: ambiguous argument 'refs/remotes/origin/master': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git [...] -- [...]' error: 7517 bytes of body are still expected fetch-pack: unexpected disconnect while reading sideband packet fatal: early EOF fatal: fetch-pack: invalid index-pack output Error: Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core failed! fatal: invalid upstream 'origin/master' ==> Downloading ghcr.io/v2/homebrew/portable-ruby/portable-ruby/blobs/sha256:1f50bf80583bd436c9542d4fa5ad47df0ef0f0bea22ae710c4f04c42d7560bca Already downloaded: /Users/mac/Library/Caches/Homebrew/portable-ruby-2.6.8_1.el_capitan.bottle.tar.gz ==> Pouring portable-ruby-2.6.8_1.el_capitan.bottle.tar.gz Failed during: /usr/local/bin/brew update --force --quiet Please help!!!
One thing that I think you should have mentioned is not to use the "sudo" command when running Homebrew.
Doh. Quite right. I'll pin this comment at the top.
this bites me every time
@@msimcox2 you are not alone, the muscle memory from using `sudo` with `apt` and `pacman` on Linux has bitten me with `brew` a few times.
@@tech_craft why what happens if you do use sudo command?
The permissions end up all screwed up with the root user owning a lot of the config files of the software you install. You also open up your computer to the possibility of malicious packages having root access.
Best option is to uninstall and reinstall if you end up with a root install.
Thank you sir. This was valuable content. Very useful.
homebrew is just essential I have found and could not do without it for the last few year and do see a change to that in the future.
Welcome back! Good to see and hear you again!
Your explanations are clear, to the point. Could you make more videos like this for newbies about macOS hard disk, file format, how it is different from Windows making C, D etc drive. How to connect an old perfectly working Bamboo Wacom tablet that apple just made it obsolete, though it works fine in linux.
Welcome back Rob. Excited for more of your content. appreciate you sharing your knowledge with us.
Great tutorial Later in the proceedings I had to look up the way you can update the Brew Bundle File content, by doing: brew bundle dump --force. I don't know if you eventually told id. Thanks for the great tutorial on Brew!
Thank you video was very helpful..... bravo
Welcome back Rob, glad to hear from you again!
I learn a lot from this video, I just hope you can spend some time to explain what cakebrew is and what is it for in more details, nonetheless its a great video.
Great video, have installed Homebrew after seeing it on a couple of other YT channels on my new iMac (first Mac). Yours is by the far the best description of how to install and use Homebrew and Cakebrew (something the other channels never mentioned), thanks for the detailed video.
Wish you'd come back Rob, I really miss your content.
What have you done to make your Terminal looking only > This is useful to make it clutter free. Please tell the steps.
Here are some commands I use often:
brew leaves # for formulae
brew list --cask # for applications
brew uses --installed [formula] # to understand dependency
brew autoremove # after uninstall formula and understanding the dependency
Excellent video… just getting into the macOS world, so this is very well-timed! Thanks and welcome back!
Let me know how your journey goes. I’m always keen to hear what parts of Mac people are struggling with.
I also use brewlet which can auto-update all installed formulars. Since the latest update it also works with casks.
Thank you for the guide. This was very helpful in getting started as a recent Mac OS convert.
Thank you! As a previous Windows/Ubuntu user who just got my first Mac, this was incredibly helpful and I now feel much more comfortable in this new system. Saw this a bit too late though and I already painstakingly installed a bunch of applications the "normal" mac way, oops
More channels need to talk about MacPorts, it’s twice as stable and offers a lot more variety in features
I'm starting to get serious about moving to Nix on all my machines - my Christmas vacation project is to really understand Nix and hopefully make a video on it in the future.
Perfect! Your video is awesome! It's a total no BS direct solution. Thank you!
Nice that you're back!
welcome back!! quite strange, another channel I was watching a couple of days ago mentioned one of your posts, I thought ‘oh yeah what happened to that channel’ and here you are :)
Thanks! Which channel was that?
I’ve also seen a couple of videos that reference your iPad to RPi video. One of them is ua-cam.com/video/uyF_4NO3JQI/v-deo.html. It was a great concept that’s I’m starting to make better use of by setting up Kali PiTail on a Raspberry Pi Zero 2W. I’m also looking forward to new iPad and/or Raspberry Pi videos. Welcome back!
@@tech_craft ua-cam.com/video/h-dh2L3X2bs/v-deo.html he's doing a project connecting a Pi to an ipad similar to your video from awhile back
@@mcal27 Great. Lots of interesting developments in the iPad coding space in the last year or so. With VSCode Remote getting real attention, and with code-server running on RPi there are plenty of interesting options.
@@tech_craft you are just the guy to show us! ;)
If you plan to use Homebrew for managing Python installations, should you uninstall the pre-installed version on your Mac?
Maybe you can provide me with some guidance, I installed homebrew in my Mac, I am trying to find a way to close certain apps when the system goes to sleep (mainly to save battery). I tried using sleepwatcher using different configurations, but it's not working
Thank you for the video, very helpful.
Just moving back to Mac, I’ve been in the Windows wilderness since 2017. Always loved the OS it’s just Apple stopped launching hardware at the time. I’ll definitely give this a try on my new Mac studio.
Welcome back! What brings you back to the Mac?
Better late than never. Apple silicon and the hardware. In 2017 they just seemed focused on the phone and laptops. I left before the iMac Pro was launched and there had been very little on the hardware side for years.
Perfect timing with my new M1 Mac Mini!
I’m jealous! How is it? My Mac Mini is 10 years old now and has finally exited OS support so I’ll be finding a good project for recycling it.
welcome back!
great video! As a "noob" how can I find brew commands? is there a manual?
I think the hardest part of terminal in general is knowing commands. I can navigate pretty well but searching and "knowing" commands are harder.
like, now I know the commands you told me, but how do I know others commanda and what the apps you installed actually do? Firefox is easy, but "wget", I'd have to google that for example
For sure. You can get a summary with `brew help` and then each command can give further help so, `brew help install` for example.
There is an extensive manual online at: docs.brew.sh/
Extraordinary content! Very useful!!😃
I enjoy your content and use brew myself. However, I’m perhaps a little weird but I usually like to install my apps (casks) from the official website… but I use brew for everything else like CLI tools, etc. Perhaps I’m just stupid or doing more work to install things, I don’t know.
Btw, if I remember correctly, you’re a emacs user? Do you have any videos getting started with emacs on the Mac? Or any guides how you set up and perhaps a basic config..?
I have a Mac/Emacs setup video on my backlog, but nothing on the channel yet.
@@tech_craft Okey thank you very much.
Welcome back, love your content! Using Homebrew to manage macOS GUI apps is something I had never thought about, but since I tend to archive all the installers, do you know if there is a way to retain the downloaded .dmg files? Thanks!
Thanks!
Homebrew retains all install packages by default because they might be needed. You can find them in the cache directory with this command:
find -E "$(brew --cache)" -type f -regex '.*\.(dmg|pkg|zip)'
Hi Rob, would like your comment on Macports vs Homebrew. Thanks. Missed your tutorials ;)
It's been a long while since I used Macports but I remember it needing root access, which Homebrew doesn't, and I remember it always compiling from source which meant it was a little slower.
That said, both are good solutions, and better to use one of them rather than none of them!
@@tech_craft thank you. That makes sense. My company does not provide either of these solutions so I need sudo to start in both cases :( the only program I really need is mpich for scientific computing and compiling from source might result in more optimized binary. I will give homebrew a try.
Thank you
do you have a video about doing a clean install on your mac?
It's on my list to film one.
Rob, do you use the stock Terminal application (with OMZsh and Starship), or do you have a preferred replacement?
I’m using Kitty with Starship. I used iTerm2 for years, another great option. I really like the minimal look of Kitty and the speed it very welcome.
Good video. thank you.
Doesn’t emacs run much better/faster as a service/command line?
It definitely makes sense to run emacs as a service/daemon and then connect to it using `emacsclient`.
This works by default with HomeBrew install of Emacs.
You can certainly use Emacs in the terminal as well, but I much prefer to use the GUI mode. There's a lot of extra features and it's a smoother experience on both Mac and Linux.
Why when I key in brew list, it appears ==> Formulae instead of ==> Cask
Brew has two kinds of packages: formulae and casks. List should show two sections, one for each of the package kinds.
no doubt great video
nice video, thanks
very helpfull !!
Thanks man
I tried installing homebrew through terminal, and it won't let me type in my system password.
EDIT: IF you guys have that problem, it actually reads what you type, it just doesn't show it on screen (masked or otherwise). Weird design decision, imo. Just a heads up to other people.
when i copy paste the link in the terminal i cant fill in my password, help?
You won't see any characters appear when typing in the password, but it is working. Very frustrating.
Brew doesn’t install on Yosemite …
Homebrew vs using Docker? What are your thoughts…
Good question. I use both plus asdf/sdkman. Homebrew I use for most utilities and tools, things like vim, emacs, syncthing, jq, git etc.
I use Docker for 'server'-type stuff, things like PostgreSQL, envoy, nginx and so on.
Then I also use asdf/sdkman for software where I need to run multiple versions in parallel. For my job I need multiple versions of Java, Go, NodeJS etc, and asdf is great for that. I install asdf using Homebrew!
The title(s) or the video(s) could be a bit more descriptive. The content of your channel is, in my humble opinion, NOT of low quality and thus it does NOT need clickbaits.
Thanks for the feedback.
I won’t touch homebrew with a barge pole. Yes it’s simple, yes it can be useful, but it can screw up your local Python settings, it’s a security risk and the project have turned out to be pretty toxic towards the professional Mac management community.
I’ve been using Jeff Geerling’s Ansible playbook ( ua-cam.com/video/1VhPVu5EK5o/v-deo.html ) for configuring my Mac, as learning Ansible will also help you for wider infrastructure tasks.
Have you tried Nix and NixOS? I'm seriously thinking of moving from Arch to NixOS on the Linux side.
I did run Nix on the Mac for about ~4 months but I always felt like I was going against the grain.
WTF homebrew sounds powerful
It's great - I've been using it for well over ten years now and have no real complaints.
Please don't copy/paste commands from the internet. -_-
I appreciate the sentiment of this but there's a lot of nuance to this issue. Copy and pasting from Homebrew is a lot different from copy-and-paste from some random forum.
You also have to consider your own personal threat model. My model assumes that copy-paste once from a trusted site is a lot better than the inevitable copy-paste from hundreds of different sites to install all the different packages.
niceee :)
Could you plz help me with this shortcut I made Rob. When the pdf is generated, all the images used become blurry. The photos are actually very clear. I use in sharesheet
I’m unable to upload the link.. please can you check your Instagram DM
Please ROB 🙏🏻
homebrew taking 24hours to install package ,.:)
I’m sure you know Neovim >> emacs, right? Haha
I mostly agree, expect for org-mode. I'm using Doom Emacs which runs evil-mode so it's _almost_ the best of both worlds.
Macports is much better. Homebrew is Macports slovenly hipster cousin.
…. “==>. Home brew is run entirely by unpaid volunteers. Please consider donating: …”
I have NEVER seen a UA-camr talk about donating to the authors of software that they use, many times using the software to help them create their UA-cam content and make $$$.
- i -s
I am unable to install Homebrew
See Error Below.
###----------------------------------------------------------
==> /usr/bin/sudo /usr/sbin/chown -R mac:admin /usr/local/Homebrew
==> Downloading and installing Homebrew...
Updating files: 100% (2975/2975), done.
HEAD is now at 4b3d64d30 Merge pull request #14453 from Rylan12/languages-in-cask-api
error: Not a valid ref: refs/remotes/origin/master
fatal: ambiguous argument 'refs/remotes/origin/master': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git [...] -- [...]'
error: 7517 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
Error: Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core failed!
fatal: invalid upstream 'origin/master'
==> Downloading ghcr.io/v2/homebrew/portable-ruby/portable-ruby/blobs/sha256:1f50bf80583bd436c9542d4fa5ad47df0ef0f0bea22ae710c4f04c42d7560bca
Already downloaded: /Users/mac/Library/Caches/Homebrew/portable-ruby-2.6.8_1.el_capitan.bottle.tar.gz
==> Pouring portable-ruby-2.6.8_1.el_capitan.bottle.tar.gz
Failed during: /usr/local/bin/brew update --force --quiet
Please help!!!