I don't believe you can. I could be wrong on that. You may be able to redirect the root directory, meaning "/" really means "/opt". But that would still mean you'd get something like "/opt/usr/apache". Remember RPMs can be putting files all over your filesystem, so you can't really tell it to put everything in a certain place.
I think you'd have to have the source rpm. Then you could change the .spec file and rebuild the rpm, and then be able to change everything how you want it. I think you can do rpm -qlp apache.rpm and that will tell you all the files and where they will go. Oscar On Fri, 25 Jul 2003, Hari Om wrote: > how can I tell RPM (Red Hat Packet Manager) to install package in a certain > directory? > I am using Red Hat Linux 7.1 > I tried following: > -------------------------------------------------------------------------------------------------- > #rpm -ivh apache.rpm > -------------------------------------------------------------------------------------------------- > > How can I tell RPM to install Apache in /usr/local (or any other userdefined > directory)? > > _________________________________________________________________ > Add photos to your e-mail with MSN 8. Get 2 months FREE*. > http://join.msn.com/?page=features/featuredemail > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
