SLUG Mailing List Archives
Re: [SLUG] RPM change of default root
- To: Alan Vink <ajvink@xxxxxxxxxxx>
- Subject: Re: [SLUG] RPM change of default root
- From: DaZZa <dazza@xxxxxxxxxx>
- Date: Fri May 3 22:36:02 2002
- Cc: Slug <slug@xxxxxxxxxxx>
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.
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.