On 11/4/05, Rex Dieter <rdieter@xxxxxxxxxxxx> wrote: > Akop Pogosian wrote: > > How am I supposed to deal with this error? > > > > # rpm -Uvh filesystem-2.2.1-3.centos.1.i386.rpm > > Preparing... ########################################### > > [100%] > > 1:filesystem ########################################### > > [100%] > > error: unpacking of archive failed on file /home: cpio: chown failed - > > Operation not permitted > > # rpm -q filesystem > > package filesystem is not installed > > # ls -dlL /home > > drwxr-xr-x 301 root root 8192 Nov 2 18:25 /home > > > > /home mounted from NFS server. > > You need to allow root acess to the NFS share (ie, export with the > no_root_squash option). > > Or don't NFS mount /home. > Actually, what I believe will give him the desired behavior is to add to /etc/rpm/macros (create it if its not there): # A colon separated list of paths where files should *not* be installed. # Usually, these are network file system mount points. # %_netsharedpath /home As the comment from /usr/lib/rpm/macros suggests other paths can be added. This will cause rpm to not delive files that are in these directories with no error, and ass the macro name implies, this feature was designed for this very purpose. Cheers...james