When attemption to use the --prefix option with rpm in RedHat Linux 6.0, it reports that only one prefix option may be used, even if only one option is used. For example: # rpm -ivh --prefix /opt/zip zip-2.1-8.i386.rpm rpm: only one of --prefix or --relocate may be used
You can work around this problem by using --relocate. Assuming that the package wants to install in /usr and you wish to install in /opt/zip, the command would be rpm -ivh --relocate /usr=/opt/zip zip-2.1.8.i386.rpm
fixed in rpm 3.0.1