On Fri, 3 May 2002, Alan Vink wrote:

> I'm trying to do get at some files I desperately need out of RPMs that
> someone has built, what I'd like to do is install them "fully" but to direct
> them at believing that eg. /testrpm/ is the root directory.
>
> Therefore if the install path in the RPM points to /var, the command must
> basically direct all /var install paths to /testrpm/var/*
>
> I hope it makes sense, bascically a chroot command to rpm.. I'm using RH 7.2
> and the default RPM application it ships with. I'd also not like the RPM
> database to be updated in the command. So just pulling the files out of the
> package, and installing them into a dummy root path.

RTFM

rpm --help gives this

      --root <dir>         - use <dir> as the top level directory

so, installing your files with

rpm -ivh --root /testrpm/ <filename.rpm>

should fix your problem.

DaZZa

-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to