Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools Console Foundations Installing Software Introduction to Package Managers

Ryan Bent
Ryan Bent
6,433 Points

In my console, it keeps telling me commands are not found. When I try to enter anything

tried to delete cookies and log out. Still doesn't work

what did you type in?

3 Answers

What console you are using?

Brad Zickafoose
Brad Zickafoose
7,726 Points

I'm also getting "command not found" whenever I try to run "sudo apt-get install" or "sudo apt-get upgrade" from Terminal in OS X.

Victoria Holland
Victoria Holland
6,159 Points

The APT package manager only works on Debian based Linux distributions. It won't work on Apple OS X terminal. You would need to use the Treehouse console or even install a Linux distro in VirtualBox if you really want to learn more about it.

+1 to Victoria's comment.

Li Mbo
Li Mbo
5,096 Points

So what is the equivalent for Mac?

There is no true equivalent for Mac. The APT package manager works based on Linux repositories for Linux based binaries. They are not meant for Mac files. There are methods to install apt-get but you'd only be able to install basic Unix binaries or Linux binaries that will be unable to compile on your system. What are you trying to do?

amathiaitishar
amathiaitishar
13,229 Points

Install something called Homebrew [http://brew.sh/], which is described as the missing package manager for OSX. Homebrew will let us install different command line software very easily.

1] So, copy this link:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" or go directly on [http://brew.sh/] and copy the link from there, if you feel so, and 2] Open your Terminal and paste the link and hit enter and you will see something like :

==> This script will install: /usr/bin/local/brew /usr/local/Library/... /usr/local/share/man/man1/brew.1

And will prompt you to hit Enter[Return] to continue to install the homebrew and then you will see something like: ==>Installation succesful!

For further information you can go https://git.io/brew-docs or [http://brew.sh/]

Hope this helps, Best :) Amathia