Sign up ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

I am new to Mac OS command line, I want to use either of apt-get or yum.

Can anyone help me to install them and make them successful running?

share|improve this question
Why do you want to install them? What software do you want to install that you expect to find as .deb or .rpm files which will work on an OS X install? – Michael Kjörling Jun 26 '13 at 11:08
Both utilities are too Linux-specific (and/or too Fedora/Debian-specific) so they won't work on OSX without serious effort on your part,so Michael's question stands: what exactly is it you want to do? – schaiba Jun 26 '13 at 11:30

3 Answers 3

If you want the equivalent to apt-get or yum on Mac OS X, you have two choices.

  1. Homebrew:
  2. Macports:

You can use brew install PACKAGE_NAME or port install PACKAGE_NAME to install the package available.

share|improve this answer

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...

share|improve this answer

You need to install either Homebrew or YUM. I recommend using HomeBrew. To install it enter the following command in terminal.

ruby -e "$(curl -fsSL" 

then use brew install Package_name

share|improve this answer
Does ruby come pre-installed with each OSX? – Anthon Apr 3 at 14:07
@Anthon: Yes, for several years now. – cdunn2001 May 15 at 8:23

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.