Step 4 — Installing, Upgrading, and Removing Packages. Now that Homebrew is installed, use it to download a package. The tree command lets you see a graphical directory tree and is available via Homebrew. Install tree with the brew install command: brew install tree. Unfortunately, Eclipse is not capable of communicating with any debugger other than GDB (yet). Here is a step-by-step guide for installing and configuring GDB. As with GCC, the easiest way to install GDB is through Homebrew. In a Terminal window, run the command brew install gdb, and wait for it to complete. (As usual, it may.
With the recent release of Ruby 3.0, I thought it’d be a good idea to make my first post of the year on a quick how-to guide to installing the new (or any) version of Ruby.
Homebrew
The only thing you’ll need before we get started is brew installed on your machine.
If you don’t have brew, install it by running the following command:
How To Install Brew On Macos Catalina
Ruby Install

Once you have brew, you’re ready to go! First, we must install a tool Postmodern/ruby-install to get the version of Ruby that we want:
Now we can download and install any version of ruby available. If we want Ruby 3.0:
or for latest version:
Voila! You can now install any version of Ruby you choose.
Multiple Versions of Ruby
If you need to utilize multiple versions of Ruby and will need to switch back and forth between versions, you may use the corresponding chruby tool here Postmodern/chruby.
Then, to switch between versions:
This article shows how to install Maven (3.6.3) on macOS Big Sur (version 11.1).
Topics
Install Brew In Mac Catalina Update
Related Articles
1. Homebrew install Maven on macOS
1.1 Install Homebrew, a package manager on macOS.
1.2 The command brew install maven will install the latest Maven.
1.3 Done. The Maven is installed on macOS.
P.S At the time of writing, the latest Maven version is 3.6.3
1.4 Where does Homebrew installed the Maven?
The brew will install the Maven packages at /usr/local/Cellar/maven/${version}
The brew also creates shortcut or symbolic links at /usr/local/opt/maven/
1.5 Where does Homebrew put the Maven configuration file, settings.xml?
The settings.xml is available at /usr/local/opt/maven/libexec/conf
1.6 Where does Homebrew put the core mvn executable file?
The mvn is at /usr/local/bin/
1.7 brew info maven to show the detail of the Maven package.
1.8 brew list maven

1.9 Useful commands:
brew upgrade mavento upgrade Maven.brew uninstall mavento uninstall Maven.
2. Install Maven Manually
If Homebrew failed you or you don’t want the black-box magic, try to install the Maven manually.
2.1 Download the Maven, for example apache-maven-3.6.3-bin.tar.gz
2.2 The below command extracts the downloaded .tar.gz file to the current user’s home directory ~
2.3 Now, the Maven folder is at this path /Users/mkyong/apache-maven-3.6.3
2.4 On macOS 10.5 Catalina or later, the default shell is zsh, and we can create the environment variables MAVEN_HOME and update the PATH in ~/.zshenv.
Open the ~/.zshenv and append the following content.

Note
For macOS 10.14 Mojave and before, the default Terminal shell is bash, and we can create the environment variables in ~/.bash_profile.
Open the ~/.bash_profile and append the following content.
P.S Read this Zsh Startup Files.
2.5 Source the ~/.zshenv to reflect the changes.
2.6 Verification.
How To Install Brew In Mac
Install Brew In Mac Catalina Os
Done.



