Make Homebrew Do Your Dirty Work (MacOS/Linux)

The homebrew homepage

Just recently, I have been moved over to MacOS (not a personal choice, mind you), and I’ve been learning about some of the really cool features and programs it has to offer.

The one I want to share today is Homebrew, as I’ve used it time and again, and it has just made my life so much easier while grabbing new programs and setups.

Some of the reasons it’s great:

  • With a single line, you can install packages, apps, software or plugins. This can save you an incredible amount of time when installing several of these for a project.
  • Add the version you want. Adding an option with the version number is all it takes to install as old of a version as you want or need!
  • Using the command in any directory will work. It knows where to put it.
  • Easy to edit the install afterward, in case you need a specific setup.

The Proof

For example, I have an svg file that I want to compress, called photo.svg. Now to do this, I want to install yarn and svgo. Normally, I’d have to run over to the yarn website, run the manual install that requires several lines, curl commands and possibly expand a tarball. Now while it might be pretty straight forward, you may find it slightly more work if you are new to these commands/operating systems, possibly requiring a bit of research on new commands beyond what you were directly working on. And even if you are not new to these, it can be cumbersome… if you’re from either camp, Homebrew is going to change that for you. Instead, now that you have your handy Homebrew, you can just run:

brew install yarn

3 words. No research. Easy!

Similarly, with svgo, you can just run:

brew install svgo

Now you’re setup to go! Now you can spend your energy on using the tools for your work, rather than just setting them up.

Here’s a quick list of useful commands that come with Homebrew:

  • install – installs your package, program, app, etc.
  • create – allows you to create your own brew (or package/program that can be installed using homebrew)
  • list – lists all installs performed on your machine through Homebrew
  • upgrade – allows you to update one of your prior installs or all of them
  • outdated – lists all outdated installs on your machine
  • doctor – troubleshooting tool
  • uninstall – get rid of an unwanted install

Overall, Homebrew has been an awesome addition to my day-to-day workflow and has eliminated probably hours from reading through dry documentation. Its a pretty well-known package manager, but I hope you found this to be something new that you can try out as well!

And if you have questions about an embedded project you’re working on, Dojo Five can help you with all aspects of your devops for embedded journey! We are always happy to hear about cool projects or interesting problems to solve, so don’t hesitate to reach out and chat with us on LinkedIn or through email!

Discover why Dojo Five EmbedOps is the embedded enterprise choice for build tool and test management.

Sign up to receive a free account to the EmbedOps platform and start building with confidence..

  • Connect a repo
  • Use Dev Containers with your Continuous Integration (CI) provider
  • Analyze memory usage
  • Integrate and visualize static analysis results
  • Perform Hardware-in-the-Loop (HIL) tests
  • Install the Command Line Interface for a developer-friendly experience

Subscribe to our Monthly Newsletter

Subscribe to our monthly newsletter for development insights delivered straight to your inbox.

Interested in learning more?

Best-in-class embedded firmware content, resources and best practices

Modern Embedded Firmware Development Practices in the Warehouse Automation Industry

In the fast-paced world of warehouse automation, the development of embedded firmware is a critical aspect that underpins the efficiency and functionality of automated systems. This blog explores the multifaceted realm of modern embedded firmware development, as well as the innovative testing practices that help identify and mitigate bugs early in the process, leading to cost savings and more robust systems. Modern Embedded Firmware Development in the Warehouse Automation Industry Embedded firmware development is the unsung hero of the warehouse

Read More »

Debugging Step 1 – Check the Datasheet

When setting up something like a new sensor for a project feature, it’s become typical for engineers to grab a development kit for their ease of setup and the speed at which developers can get up and running. The usual approach involves a quick breadboard job to connect the dev kit to the existing hardware, and then the engineer can go on their way writing software to use that sensor in their project. Issues that spring up during testing can

Read More »

What does a modern pipeline look like for embedded?

What does a modern pipeline look like for embedded? Featured Categories Our Engineers Security Embedded CI All Categories Recent Posts By: Aaron Fontaine Having a modern pipeline helps automate the tools you need to ensure high software quality and consistent results. Although the cost of setup is higher, once a modern pipeline (and corresponding practices)…

Read More »