When rpm -qf is run with an arguement that includes a file like ./testfile you get an unexpected result: root@chris:[ /etc/sane.d ] rpm -qf ./apple.conf file /apple.conf: No such file or directory And from a 'strace' it is actually trying to access the file /apple.conf access("/apple.conf", F_OK) = -1 ENOENT (No such file or directory) Thanks Chris
The following works for me bash $cd /bin bash$ rpm -qf ./rpm rpm-4.0.1-0.5
I think that this is easiest explained by using a 'newer' version of RPM than I have. Is that the version that comes on the ISO's? cyeo@chris:[ /bin ] rpm -qf /bin/rpm rpm-4.0-4