From my research, I seem to notice that all package managers insist on being used as a privileged user and must be installed into /
.
Typically, what I like to do is create a throwaway account, compile some software, and install to $HOME
for that account. I can try a variety of setups and then when I'm done, just destroy the account.
However, compiling software becomes tedious.
My experience is really just limited to yum
, but I don't understand why I wouldn't be able to drop a repo file into ~/etc/yum.repos.d
and have yum install everything into a home account.
Is there any reason why package managers must be used as a privleged user to install software?
/bin
) or it may assume that it is installed in place specified by --prefix. While the latter may be work around by those projects the former requires patches on source code. – Maja Piechotka Jan 08 '11 at 14:42/
This sounds like a requirement which could be justified maybe 30 years ago but not now. Isn't for example theenv
program meant to solve this kind of problems? If not it's easy to come out with a scheme to configure any binary to look for other binaries in specific locations. – Piotr Dobrogost Feb 26 '13 at 20:58/etc
or (according to my knowledge)/usr/lib/<packagename>/
or/usr/libexec/<packagename>/
./usr/share
can be changed by XDG variables which has been released sometime in this century and are not necessarily adopted for older programs. – Maja Piechotka Aug 28 '15 at 08:02