I have a few Linux servers that lack necessary sudo or root permissions, and I’m feeling kind of stuck with my options:
- hand-compile packages to a
~/local/folder or some equivalent - work with sysadmins to get some old version of whatever tool I’m wanting installed, likely never to be upgraded again
- try to roll my own homebrew, not having a clue how to do it
Is there something for a user in my limited state to be able to locally compile and install various localized applications in the same way I use homebrew on my personal Mac at home?
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
Do you know pkgsrc? It’s a framework (using Makefiles and some pkg_* tools) for compiling packages that also facilitates non-root building of packages (and their dependencies) very much.
So, referring to your choices, it’s the “homebrew” thing but already built and proven, with lots of packages. There’s a guide, too. (While it looks kinda NetBSD-specific, it’s not and should work just as well on Linux.)
Method 2
Linuxbrew is exactly a Homebrew equivalent for Linux. It may not have existed when the OP asked the question, but it does now and it works very well.
Method 3
EasyBuild might meet your needs: https://github.com/hpcugent/easybuild
Here’s a demo, an installation of a package as a non-root user: https://github.com/pdurbin/easybuild-vagrant
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0