安装xxx.rpm包,以relocate 参数进行安装,安装到/opt/temp目录:
rpm -ivh --relocate /=/opt/temp xxx.rpm;
以prefix进行安装:
rpm -ivh --prefix= /opt/temp xxx.rpm
安装xxx.rpm包,以relocate 参数进行安装,安装到/opt/temp目录:
rpm -ivh --relocate /=/opt/temp xxx.rpm;
以prefix进行安装:
rpm -ivh --prefix= /opt/temp xxx.rpm
转载于:https://www.cnblogs.com/lovezhaolei/p/4326092.html