I am new to Mac OS command line, I want to use either of
Can anyone help me to install them and make them successful running?
If you want the equivalent to apt-get or yum on Mac OS X, you have two choices.
You can use
It is possible to use apt-get on OS X 10.9 like Deb based Linux using a third party software named Fink - How to Install apt-get on Mac OS X. However, unlike Homebrew and OS X Package Managers, Fink does not use /usr/local/ path to install software. It simply means, Fink is for a bit advanced users who can handle the software conflicts (for difference in version). Homebrew, to me is the best package manager...