Re: Why can't I do "rpm --root ... -i ..." as regular user?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



AFAIK, when you use --root, rpm does a chroot. To do the chroot you need to be root.

It would be good if this was changed, even if only when doing --justdb. Things like the rpmdb package could then be build as a user.

John.

Toralf Lund wrote:

Why does this happen?

rpm --root /var/tmp/root --initdb
rpm --root /var/tmp/root -i setup-2.5.25-1.noarch.rpm
error: unpacking of archive failed on file /etc/bashrc;4046f939: cpio: open failed - Permission denied


I do have permissions for the current root; I just created it! Also,

rpm2cpio setup-2.5.25-1.noarch.rpm | (cd /var/tmp/root; cpio -idvmu)

works just fine.

rpm version 4.2-1


_______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list





--
Computer Systems Officer
School of Information Technology
Swinburne University of Technology
Melbourne, Australia
http://www.it.swin.edu.au/staff/jnewbigin


_______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux