rpm does not accept filenames with spaces in them: | [root@lockfix ~]# ls -l u\ .i386.rpm; rpm -qip u\ .i386.rpm; rpm -q rpm | -rw-rw-r-- 1 root root 140108 15. Aug 10:29 u .i386.rpm | Fehler: open of u failed: Datei oder Verzeichnis nicht gefunden | rpm-4.2-0.69 Notice though: | [root@lockfix ~]# rpm -Fvh u\ .i386.rpm | Fehler: open of u failed: Datei oder Verzeichnis nicht gefunden | Fehler: open of .i386.rpm failed: Datei oder Verzeichnis nicht gefunden (Filename gets handled as two.) I stumbled upon this while handling RPMs in a directory with a space in its name but the error occurs also if the space is only in the base name. The root of the problem may lie in popt but I did not dive into that. (Obvious) workaround: Rename the RPM and everything's fine.
Spaces in file names from the command line? That's too pathological a problem case for me to consider fixing, there's bigger problems, like rpm can/will permit glob characters in the output package file name, that are at least as important. Defferred until somewhen.
I also encountered this issue with the midnight commander (bug #114542) in Fedora Core. $ rpm -qp 'a b/SysVinit-2.85-5.i386.rpm' error: open of a failed: No such file or directory $ rpm -qp 'a\ b/SysVinit-2.85-5.i386.rpm' warning: a b/SysVinit-2.85-5.i386.rpm: V3 DSA signature: NOKEY, key ID 897da07a SysVinit-2.85-5
*** Bug 114542 has been marked as a duplicate of this bug. ***