@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