我的/root
已经满了,我不能安装新的软件包。我的/home
的空间是/root
的8倍,但是pacman将在/root
上安装新的软件包。是否有一种安全的方法可以改变pacman永久安装新包的位置?
发布于 2014-04-02 02:45:12
不,从长远来看,没有安全的方法可以做到这一点。从手册中:
-r, --root Specify an alternative installation root (default is /). This should not be used as a way to install software into /usr/local instead of /usr. This option is used if you want to install a package on a temporary mounted partition that is "owned" by another system. NOTE: if database path or logfile are not specified on either the command line or in pacman.conf(5), their default location will be inside this root path.
这不是一个永久的解决办法。您需要备份数据并调整分区大小。
您还可以清理pacman的缓存(-Scc
),以便在短期内腾出一些空间。
https://unix.stackexchange.com/questions/122672
复制相似问题