大网数据广告活动
服务器运维问答

Install software on Ubuntu using apt without root?

· 52CE 我爱测

I’ve got accounts on many HPC clusters. The machines have a minimal install, and the admins won’t add much else. I need to install lots of typical software. Normally I’d do this with apt, but of course I don’t have root on these …

问题原文

原帖链接 · projectshave · CC BY-SA 4.0

I’ve got accounts on many HPC clusters. The machines have a minimal install, and the admins won’t add much else. I need to install lots of typical software. Normally I’d do this with apt, but of course I don’t have root on these machines. Some alternatives:

  1. The admin recommended spack. Then they told me privately everyone hates spack and avoids it. It failed badly for me.
  2. Download source, compile+install myself. This is annoying, it’s difficult to update, and not all packages are easy to move their install location.
  3. Nix. Appears to do (2) automatically. Some say it’s hard to install without root. Don’t know…
  4. OverlayFS? Is there a way to trick the system into believing I have root permissions everywhere?
  5. Rootless Docker. Ultimately the software I produce needs to run on a cluster. It can’t be in a container. And I’m using zillions of GPUs, which is trickier with docker.

This should be a common problem. Most companies won’t give root access to everyone. What’s the best way to install software without any root privileges?

已采纳解答

原帖链接 · Todd Gamblin · CC BY-SA 4.0

Spack, like Nix, does (2) automatically, but lets you build against external packages like the system MPI, math libraries, etc. It also gives you more flexibility around versions, compilers, and other aspects of the build. Honestly, it was created (disclaimer: by me!) for this use case. The community is supportive; if you're having build issues you can likely get help quickly on spack slack. It's active; there are around 2,500 users on there.

Your other decent options are:

  1. EasyBuild, which will also build from source (smaller community, more targeted at admins and modules)
  2. Conda, conda-forge, or mamba (conda with a much faster solver). Binary only, won't build with the system MPI, not likely to have all the HPC software you may want.
  3. Linuxbrew Similar issues to Conda, not focused on scientific software at all.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2023-06-26)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。