为什么我不能在 Mac 上使用 apt-get 即使安装了 wget

Why can't I use apt-get on Mac even though wget is installed

我使用 Mac Big Sur 11.5.1。我使用 brew 安装了 wget,但是当我输入 sudo apt-get install ros-noetic-imu-tools 时终端显示 apt-get: command not found。虽然我又试了brew install wget,结果是wget 1.21.1 is already installed and up-to-date。所以肯定安装了wget。可能的原因是什么?

macOS 不使用 apt 作为其包管理器。 Homebrew 是 macOS 上最受欢迎的包管理器。此外,wget 与包管理器 apt 无关。有关详细信息,请参阅出色的答案 here

我会尝试 this search for getting it ROS working with Mac. 所以这个问题可能也很相关。