Michael O'Keefe wrote:

> You don't need --relocate=targetdir
> --root, in *effect*, does a chroot()
> I use it to install a base system into my chroot() jails before using
> /sbin/chroot to install other required elements. You certainly might
> need --nodeps, depending on the RPM's requirements, since you will have
> a new, empty RPMDB, and that, of course, will fail all dependencies

--relocate /=targetdir

I seem need to specify that or it fails due to permssion, e.g.:

~> rpm --root /home/dlooney/tdir --nodeps -ivh
/usr/local/src/xfishtank-2.1tp-7.i386.rpm
warning: /usr/local/src/xfishtank-2.1tp-7.i386.rpm: V3 DSA signature:
NOKEY, key ID db42a60e
Preparing...                ###########################################
[100%]
   1:xfishtank              ###########################################
[100%]
error: unpacking of archive failed on file
/usr/X11R6/bin/xfishtank;43a21a26: cpio: open failed - Permission denied

and the files of the package are not there , vs:

~> rpm --root /home/dlooney/tdir --relocate /=/home/dlooney/tdir
--nodeps -ivh /usr/local/src/xfishtank-2.1tp-7.i386.rpm
warning: /usr/local/src/xfishtank-2.1tp-7.i386.rpm: V3 DSA signature:
NOKEY, key ID db42a60e
Preparing...                ###########################################
[100%]
   1:xfishtank              ###########################################
[100%]

And the files have been installed under ~/tdir.

It seems that it could be a real problem to chroot it for installation
scripts.

Difference in version of RPM (4.1.1) ? Distribution (SuSE 9.0) ?

Dave Looney

-- 
Statistics: A discipline where mean is normal and deviation standard.


-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to