Apt-get command not found? Here’s how to fix that

Milan Stanojevic
by Milan Stanojevic
Windows & Software Expert
Milan has been enthusiastic about PCs ever since his childhood days, and this led him to take interest in all PC-related technologies. Before joining WindowsReport, he worked as a front-end web developer. Read more
Affiliate Disclosure
  • macOS is the default operating system on Mac computers, and it’s different from Windows in several ways.
  • One of the key components of macOS is the Terminal, but many users reported apt-get command not found command message while using it.
  • Are you having additional problems? If so, be sure to visit out Mac Issues section for more information.
  • If you’re Mac user, you might want to check our Mac Hub for more news and guides like this one.
sudo apt-get command not found mac
To fix various Mac problems we recommend Washing Machine X9:
Many errors and issues are caused by a cluttered system. Will clean and optimize your system. Download it now, and make your Mac OS faster in just three easy steps:

  1. Download and install Washing Machine X9.
  2. Wait for it to start an auto scan to find Mac OS issues.
  3. Click Clean to get rid of all possible troubles.
  • Washing Machine X9 has been downloaded by 0 readers this month.

macOS is a popular operating system, but being a UNIX-based operating system, macOS heavily relies on the Terminal for certain functions.

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

  1. Open Finder and go to the Utilities Now start the Terminal from there.
    terminal open apt-get command not found
  2. Run the following commands:
    • xcode-select –install
  3. After the command is executed successfully, run this command:
    • ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
  1. After the installation is finished, use the brew install package_name command to install the desired software.

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

  1. Open App Store from the Dock.
  2. Locate Xcode in the App Store and install it.
  3. Start the application and agree to the Terms of Service.
  4. Start Terminal.
  5. Run the following command:
    • xcode-select –install
  6. Go to the MacPorts website and download the version for your operating system.
    macports download apt-get command not found
  7. Once you install MacPorts, restart the Terminal and run the following command:
    • sudo port selfupdate
  8. After doing that, you can install packages by using the sudo port install package_name

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.


 

idee restoro
Still having issues with your Mac OS?
Fix them with this tool:
  1. Download and install now Washing Machine X9 from the official website
  2. Wait for an auto scan to start and spot the issues.
  3. Click Clean to start optimizing your Mac OS for a better experience.

Frequently Asked Questions

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

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

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

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

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

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

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

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

This article covers:Topics: