You want Homebrew <https://brew.sh>
Homebrew does have a Linux implementation as well 😁
Older macOS package MacPorts <https://www.macports.org> and Fink <https://www.finkproject.org>, but these days Homebrew is the defacto standard for macOS and when you see web pages that suggest you install this, that or the other package, they will most likely give you a "brew install xyz" command.
As has been mentioned macOS is Carnegie Mellon's MACH micro-kernel and the OpenBSD kernel APIs along with many of the OpenBSD command line utilities. But there are a host of other open source (NON-GPLv3) commands and utilities, as well as many Apple developed commands. The closest similar operating system using a MACH/BSD implementation would be the Digital Equipment Corporation's DIGITAL UNIX, which was the MACH micro-kernel and BSD kernel APIs along with BSD commands (BSD came from the University of California, Berkeley campus, and stands for Berkeley Standard Distribution).
UNIX™ originated in Bel Labs (part of the original AT&T; not the current MCI that acquired AT&T and took the name).
Linux (including Debian) is an independently developed kernel with most of the core UNIX™ and BSD kernel APIs. Commands and utilities from a host of open source projects.
Here is an operating system family tree. The first section is just Unix derivatives, and each and everyone of them most likely has some differences in how you interact with it.
https://eylenburg.github.io/os_familytree.htm
Unix/Linux packages managers come in all flavors, none of which run on macOS. Here is a Wikipedia article on package managers
https://en.wikipedia.org/wiki/List_of_software_package_management_systems
Bottom line, ALL Unix/Linux systems look the same, except where they are different, and every implementation is DIFFERENT!