sudo: apt-get: command not found

41,236

Solution 1

Apt is not available for MacOS. There are other options such as Homebrew or Macports.

This question has been asked and answered on our Unix sister site: https://unix.stackexchange.com/questions/80711/how-to-install-ap

Solution 2

It depends what version of linux you're using. Debian based distros use sudo apt-get <package_name> while Fedora based distros use yum install <package_name>.

To find out what version you're using execute command cat /etc/*-release as stated here: HowTo: Find Out My Linux Distribution Name and Version

Share:
41,236

Related videos on Youtube

Ren
Author by

Ren

Updated on September 18, 2022

Comments

  • Ren
    Ren almost 2 years

    I am trying to run the following command to install some libraries.

    sudo apt-get install graphviz libgraphviz-dev pkg-config

    It is however returning the following error.

    sudo: apt-get: command not found

    I lack the knowledge to know what is required to install to make this work.

    Edit: I was using Mac. apt-get is not available to Mac.

  • Austin Hemmelgarn
    Austin Hemmelgarn over 5 years
    Also, on newer Debian systems, it's just sudo apt install. apt-get is supposed to still work, but some of the bleeding-edge fringe variants don't include the required symlink.
  • Ravindra Bawane
    Ravindra Bawane over 5 years
    OP updated their question to indicate they are on MacOS
  • gronostaj
    gronostaj over 4 years
    Debian and Ubuntu use apt, not yum.