apt
, the package manager, is a Linux tool, from Debian GNU/Linux. macOS does not have it. The apt
program that happens to be in your search path is Java's annotation processing tool, and will not do what you want.
There are projects like Homebrew, MacPorts and Fink that provides packaged third-party software for macOS.
NetBSD's pkgsrc also works nicely on macOS: http://www.pkgsrc.org/
As for md5sum
: On the BSD Unices, of which macOS is one, there is often a utility called md5
available that performs the same service (but with slightly different format of output).
If you install GNU coreutils using the tools provided by one of the above projects, md5sum
will be installed. The executable is sometimes called gmd5sum
(note the added g
prefix, which also gets added to all other GNU coreutils executables).
md5sum
to word on Mac @ivanivan – bchards Apr 15 '17 at 18:12/usr/bin/apt
is apparently protected by SIP, otherwise I'd probably just remove it to save the aggravation. – Kevin E Nov 23 '22 at 16:40