Speaking of the command line, many users reported apt-get command not found while using the terminal, and in today’s article we’ll try to fix that.

How do I fix apt-get not found message on macOS?

1. Use Homebrew instead

ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”

The apt-get command is designed to work with Linux operating systems, most notably Debian, and it doesn’t work in macOS. As an alternative, you need to use the brew command instead. Brew command isn’t available out of the box, but after installing the components from the above, it should start working on your macOS. It works as an alternative to apt-get and it should work with all of its packages.

2. Use MacPorts

Apt-get command not found message appears because the apt-get command doesn’t exist on macOS, but you should be able to circumvent this limitation by using one of our solutions.

Learn more about macOS

Can I use apt get on Mac?

No, macOS doesn’t support apt-get command. Instead, you can use Homebrew or MacPorts to achieve the same results.

What is the equivalent of APT get on Mac?

The equivalent of apt-get on Mac are brew install or sudo port install commands.

What is apt get on Mac?

Apt-get is a command that you can use in Terminal to install software packages. This command is available on Linux, but Mac has its own alternatives.

Is Homebrew safe?

Yes, Homebrew is perfectly safe to use. It’s advised to be cautious when using this tool and only install the packages that you trust.  

SPONSORED Name * Email * Commenting as . Not you? Save information for future comments
Comment

Δ