[Rpm-maint] rpm --root doesn't work or I am doing something wrong?

Pixel pixel at mandriva.com
Sat Mar 8 08:37:26 UTC 2008


"Neo Jia" <neojia at gmail.com> writes:

> hi,
>
> sorry, I don't find any other mailing list to submit my questions.
>
> I am trying to setup a build root so I need to install rpm package to
> a different root directory.
>
>> rpm --root=/home/cjia/workareas/rpm_root/fc8_root/ -ivh setup-2.6.10-1.fc8.noarch.rpm
> warning: setup-2.6.10-1.fc8.noarch.rpm: Header V3 DSA signature:
> NOKEY, key ID 4f2a6fd2
> Preparing...                ########################################### [100%]
>    1:setup                  ########################################### [100%]
> error: unpacking of archive failed on file /etc/aliases;47d1b91c:
> cpio: open failed - Permission denied
>
> Why it is still trying to write to /etc/... ?

i must be because chroot(2) failed... without an error message.

you must be root to use rpm --root



More information about the Rpm-maint mailing list