sudo: apt-get: command not found
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
Related videos on Youtube
![Ren](https://i.stack.imgur.com/4YYlU.jpg?s=256&g=1)
Ren
Updated on September 18, 2022Comments
-
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 over 5 yearsAlso, 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 over 5 yearsOP updated their question to indicate they are on MacOS
-
gronostaj over 4 yearsDebian and Ubuntu use apt, not yum.