After getting used to the (update) speed, flexibility, and reliability of Homebrew, it's shocking and frustrating to go back to Linux, where package managers were born, and have to settle for a less robust ecosystem.
After getting used to the (update) speed, flexibility, and reliability of Homebrew, it's shocking and frustrating to go back to Linux, where package managers were born, and have to settle for a less robust ecosystem.
I feel the exact same way, but in the opposite direction.
I have frequently hung up my Linux distro boot simply by apt-get updating. To the point that I now run all my Linux OS'es in a VM and take a snapshot prior to updating. Coming from a Mac background, this possibility is not only ridiculous, it's fucking unacceptable. And it happens BECAUSE apt-get and yum mutate the OS install instead of installing into userland the way Homebrew does.
Game, set, match.
It might be better to have a single package manager which supported bother user and OS packages, and clearly distinguished between them, but in the absence of that it is good to have a way to install what you intend to be user packages with an assurance that they won't be installing OS-level things that might break the OS install.
Even aside from this guarantee, its good to be able to install things for a user, but to have other users on the same machine whose environments are unaffected by the install.
yum-downloader --deps --destdir=~/.myrpms foo-1.3.3.7; rpm -U --prefix=~/.yumbrew/ --dbpath=~/.yumbrewdb ~/.myrpms/*
or whatever version of that would actually work. This has the added advantage that you don't have to compile the packages (although if you wanted to, you could make the script do that too..)
I think the biggest issue would be having it recognise packages already installed in the system when it's using a different info directory - it's possible a lot of packages would get re-installed "locally".
Other than that, I believe your concept should work on Debian.
apt-get et al are extremely capable package managers, and in my experience result in much more stable and consistent installs than brew does, specifically because it can be aware of things like OS-level dependencies which it can then manage.
Homebrew is fucking atrocious compared to a package management system like dpkg/apt.