4

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.

3 Answers 3

3

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

3

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

2
  • 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. Commented Dec 12, 2018 at 20:15
  • OP updated their question to indicate they are on MacOS Commented Dec 13, 2018 at 18:36
-1

If you are using Linux Ubuntu Debian, then use yum instead of apt-get. Change:

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

to

sudo yum install graphviz libgraphviz-dev pkg-config

That should work.

1
  • 1
    Debian and Ubuntu use apt, not yum.
    – gronostaj
    Commented Nov 14, 2019 at 17:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .