What is the exact command to install yum through brew?

verystrongjoe picture verystrongjoe · Aug 22, 2016 · Viewed 37k times · Source

I tried installing yum through brew install command. but it is not working with the message below. What is the problem? I can not find any good materials.

$ brew install "yum"
Error: No available formula with the name "yum" 
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
Error: No formulae found in taps.

Answer

MichielB picture MichielB · Aug 22, 2016

yum is a package manager for Red Hat Linux. It will not work on macOS. brew is a package manager for macOS

So instead of trying to install yum to install another piece of software, you might want to try to install this software using brew directly. But beware: the package names might not be the same. Use brew search to search for packages in brew, or maybe, even better, try and find specific instructions for macOS for the software you're trying to install.