Homebrew is a very popular package manager for Mac OS, but it is available on Linux, too. It installs packages without root and completely isolated (meaning no conflicts, not sandboxing) from the rest of the system.
I use it on Fedora and in the past used it on Ubuntu derivatives to install packages not available in distro repositories (such as starship).
It can also be used in old LTS distros to have newer versions of packages (for example, I used it to download latest version of neovim on Pop!_OS).
You can also use it to avoid layering small packages to the base image (which extends update times) on Bazzite and similar distros.