Re: rpm



-----BEGIN PGP SIGNED MESSAGE-----

On Thu, 20 Aug 1998, Keith Wright wrote:

> To: gnome-list@gnome.org
> Subject: Re: rpm
> From: Keith Wright <kwright@tiac.net>
> 
> > From: "Kenneth Christiansen" <kenth@writeme.com>
> > But what should i do if I want to install
> > the rpms into the same directory (/usr/local/; they install into /usr by
> > default)
> > 
> 
> RTFM> man rpm
>         ...
>        --prefix <path>
>               This sets the installation  prefix  to  <path>  for
>               relocatable packages.
                ^^^^^^^^^^^

The GNOME packages are NOT relocatable:

$ rpm --initdb --dbpath ~/test
$ rpm -i --force --nodeps --dbpath ~/test --prefix /var/tmp/NULL
  ~packages/packages/RPMS/i386/gnome-core-0.28-SNAP.i386.rpm 
package is not relocatable
error: /home/packages/packages/RPMS/i386/gnome-core-0.28-SNAP.i386.rpm
cannot be installed

You can use this to _really_ *force* the installation:

$ rpm -i --force --nodeps --noscripts --relocate /usr=/var/tmp/TEST
- --badreloc --dbpath ~/test
~packages/packages/RPMS/i386/gnome-core-0.28-SNAP.i386.rpm 

Now you can start this panel;

$ export LD_LIBRARY_PATH=/var/tmp/TEST/bin:${LD_LIBRARY_PATH}
$ export PATH=/var/tmp/TEST/bin:${PATH}
$ which panel
/var/tmp/TEST/bin/panel
$ panel
message: Initializing CORBA for panel

convert: Unable to open file (/usr/share/pixmaps/panel-arrow-left.xpm).
convert: Missing an image file name [No such file or directory].
convert: Unable to open file (/usr/share/pixmaps/panel-arrow-left.xpm).
convert: Missing an image file name [No such file or directory].

[...]

You see - it just will not work. Of cause you first have to delete your
working gnome-core-0.28 RPM from /usr before making this test ...

The only way to get a *working* RPM that installs in /opt/gnome,
/usr/local or somewhere else is to fetch the SRPM and change the

%define prefix /usr

to

%define prefix /opt/gnome

in its SPEC file and than rebuild ...

Martin





> 
> -- 
>      --Keith
> 
> This mail message sent by GNU emacs and Linux.
> Food, Shelter, Source code.
> 
> 
> -- 
>          To unsubscribe: mail gnome-list-request@gnome.org with 
>                        "unsubscribe" as the Subject.
> 

- -----------------------------------------------------------------
   Martin Baulig - Angewandte Mathematik - Universitaet Trier

   baulig@castor.uni-trier.de, http://www.home-of-linux.org/
   Key: 1024-bit key with ID C8178435 created 1997/01/24 
   ID:  67 C1 84 A0 47 F5 11 C5  5F 68 4C 84 99 05 C3 92
   Finger me for public key or fetch finger.txt from the url above
- ------------------------------------------------------------------


-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv

iQCVAwUBNdyrQ4A8K7jIF4Q1AQEizQQAiTSE1dlZ3kC02st/HdBILA96I1nYOlsM
d6a0RGfU2QQfDYQ21NM02zPUDwcTCW0toujxYRHGvuZ0H4WzdpL2UHIo88A2iDSx
Ntryg9heRGjOawRgoxqjUUHFI+WOYixFsa6xraHpP64Gm1k05f5TGQXcAAGwaCsq
5g3vHfAWuAY=
=rr07
-----END PGP SIGNATURE-----



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]