可以使用prefix参数。 rpm -i –prefix=/home/gpadmin greenplum-db-6.0.0-rhel6-x86_64.rpm
将greenplum-db-6.0.0-rhel6-x86_64.rpm包安装到/home/gpadmin目录下。