--- Tim Wunder <[EMAIL PROTECTED]> wrote:
> How do I change the location where RPMs get installed?
> I've just downloaded the Caldera eW3.1 SRPMs for KDE 2.2 from the KDE
> site. I
> believe that if I just 'rpm --rebuild' them, then 'rpm -Uvh' them,
> everything'll get placed in /opt/kde2 ('cept QT, of course). I'd like
> them to
> get placed in /opt/kde22.
> Currently, my kde2 directory is a symlink to KDE211, I could always
> remove
> that and then change the dir name later and recreate the symlink. But
> I
> thought I read somewhere how to redirect the install directory while
> building
> the SRPM.
> The goal is to easily revert to the old KDE 2.11 if things don't work
> out
> right.
You can't do that with "rpm --rebuild foo.src.rpm". This is baically
controlled by the spec file ( i believe) in RPMs, and the makefile for
source tarballs. So you must do "rpm -ivh foo.src.rpm" which will dump
the contents (including the spec file) into /usr/src/Openlinux/SRPM/foo.
At that point you can either edit the spec file to your liking, and
then rebuild a new RPM with "rpm -bb foo.spec" or build the package from
the source and provide a "./configure --prefix=/opt/kde2". I may have
gotten a few of the specifics slightly wrong here, as i've never done
either of these two, just been a spectator :)
=====
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Lonni J. Friedman [EMAIL PROTECTED]
Linux FAQ & Step-by-step help: http://netllama.ipfox.com
.
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/
_______________________________________________
http://linux.nf -- [EMAIL PROTECTED]
Archives, Subscribe, Unsubscribe, Digest, Etc
->http://linux.nf/mailman/listinfo/linux-users