Email or username:

Password:

Forgot your password?
Nikita

At my job, I have to manage quite some servers, and I don’t have root (or don’t want to misuse it) on them. Is there some sort of package manager that only works inside `/home/nikita`, so that I can more easily `install` and `upgrade` CLI tools that I might need?

Don’t recommend Nix, as I actually want to get work done :D

8 comments
Marcus Noble

@kytta do you have access to docker or some other container runtime? I’ve created aliases before to docker containers running the CLIs I need.

Nikita

@Marcus yes, but not on every server. Also, it's way too many layers for me; I disapprove of containers to be used like this :)

Marcus Noble

@kytta fair enough. I don’t use it often but has been handy at time. I got the idea way back from Jess’s post here: blog.jessfraz.com/post/docker-

iliazeus

@kytta many package managers allow to change the root install directory. Pacman does, for example: pacman.archlinux.page/pacman.c (the *Dir options). Idk if that covers your specific use case though

iliazeus

@kytta from what I've heard, brew should work like you described out of the box: docs.brew.sh/Homebrew-on-Linux

Nikita

@iliazeus not really. Yes, it can run rootless, but it has to be installed using sudo, and it creates an extra user and stuff just for this :/

Jan <3

@kytta homebrew :D or depending on your native package manager, you can use it with setting its install root and a combination of fakeroot and unshare and the likes

Go Up