简体   繁体   English

百胜,如何在其他目录中安装软件包?

[英]Yum, How to install package in other directory?

According to our systemadmins, all the package I need for my work will have to be installed in /appl. 根据我们的系统管理员的说法,我工作所需的所有软件包都必须安装在/ appl中。

Is it possible, using 'yum' as packagemanager, to install packages into another directory as defaulted by the package? 是否可以使用'yum'作为packagemanager,将软件包安装到该软件包默认的另一个目录中?

As for rpm, it has --relocate OLDPATH=NEWPATH and --prefix NEWPATH which will allow you to change the install path for rpms marked as relocatable which will not apply to all packages. 至于rpm,它具有--relocate OLDPATH = NEWPATH和--prefix NEWPATH,可让您更改标记为可重定位的rpm的安装路径,这不适用于所有软件包。 In general, it is not considered a good idea. 通常,这不是一个好主意。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM