Hello Ben,
To use the --root option in rpm, you have to copy various rpm specific
files into that root directory. These files reside uder /var/lib/rpm on
the host server. If you copy these files to the skel or vs root
directory (depending on whether you are installing the rpm into the skel
or the vs. Eventhough these specific files are *.rpm, DO NOT install
them, they just need to be present) and then re-run rpm. Once you have
successfully installed the packages, remove the var/lib/rpm directory
you created. The commands are along these lines:
To rpm into vs:
cp -r /var/lib/rpm /home/vsd/vs/vsone/var/lib/rpm
rpm -ivh --root <package name>
Damion.
Ben Kennish wrote:
>
> ----- Original Message -----
> From: "Nigel Marett" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, March 27, 2001 10:15 PM
> Subject: Re: Updating skel?
>
> > Evening Ben,
> >
> > your options are
> >
> > 1: either install rpms to the host then regenerate your skel.
> >
> > 2: install rpms to your skel then after that all virtual servers you
> create
> > will contain those packages (example of how to do this follows)
> >
> > 3: install rpms to individual virtual servers you have already created
> (using
> > the example below)
> >
> > rpm as root oviously =>
> >
> > [root@machinos /root]$ rpm -ivh --root <path to skel/virtual server>
> [rpm]
> >
> > ie:
> > Installing to the skel,
> >
> > rpm -ivh --root /home/vsd/skel/ nameofpackage-1.4.2.i386.rpm
> >
> > Installing to a VS,
> >
> > rpm -ivh --root /home/vsd/vs/vs001 nameofpackage-1.4.2.i386.rpm
>
> =============================
> But if I do either of these, it gives me ...
>
> "error: cannot open Packages index using db1 - No such file or directory (2)
> error: cannot open Packages database in /home/vsd/vs/vsone/var/lib/rpm"
>
> Its obviously expecting to find a packages database in the skel / virtual
> server but can't find one. I tried --rebuilddb with --root but that
> gives...
>
> "error: cannot open Packages index"
>
> Any ideas?
>
> Thanks in advance,
>
> Ben K
> [EMAIL PROTECTED]
>
> =============================
> >
> >
> > We are working on intergrating a tool to look after this procedure for
> you,
> > coming soon to a mirror near you. =>
> >
> > cheers,
> >
> > Nigel.
> >
> >
> >