Using rpm-4.0.1-0.6x, trying to install anonftp while omitting /home/ftp/pub: [root@nermal RPMS]# rpm --excludepath /home/ftp/pub -ivh anonftp-3.0-3.i386.rpm Preparing... ########################################### [100%] 1:anonftp ########################################### [100%] [root@nermal RPMS]# ls -l /home/ftp total 16 d--x--x--x 2 root root 4096 Jan 19 17:23 bin d--x--x--x 2 root root 4096 Jan 19 17:23 etc drwxr-xr-x 2 root root 4096 Jan 19 17:23 lib drwxr-sr-x 2 root ftp 4096 Feb 4 2000 pub [root@nermal RPMS]# rpm -e anonftp [root@nermal RPMS]# rpm --excludepath /home/ftp/pub/ -ivh anonftp-3.0-3.i386.rpm Preparing... ########################################### [100%] 1:anonftp ########################################### [100%] [root@nermal RPMS]# ls -l /home/ftp total 16 d--x--x--x 2 root root 4096 Jan 19 17:23 bin d--x--x--x 2 root root 4096 Jan 19 17:23 etc drwxr-xr-x 2 root root 4096 Jan 19 17:23 lib drwxr-sr-x 2 root ftp 4096 Feb 4 2000 pub
I'm having problems with that flag too..I did the following: rpm -Fvh --excludepath /usr/share/locale foofoo.rpm Then I did ls -d `rpm -ql foofoo` And half the files in the package were missing, seemingly at random!! Very weird.
Fixed in rpm CVS, will be in rpm-4.0.3-0.4 and later.