From Bugzilla Helper:
User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.4.9-31.rkn-01 i586; Nav)
Description of problem:
The command "rpm -q -p <directory-path>/<some_pkg>.rpm" fails if the
directory-path contains any white space characters.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. $ mkdir "/tmp/a b c"
2. $ cp -a diffutils-2.7-23.i386.rpm "/tmp/a b c/"
3. $ rpm -q -p "/tmp/a b c/diffutils-2.7-23.i386.rpm"
Actual Results: error: open of /tmp/a failed: No such file or directory
Expected Results: diffutils-2.7-23
If you *must* query filenames with embedded spaces,
then you will need to add an extra level of escaping
to get past rpm's globbing and reparsing of CLI
Here's what will "work" for your example:
rpm -q -p /tmp/a\\\ b\\\ c/diffutils-2.7-23.i386.rpm
*** Bug 65070 has been marked as a duplicate of this bug. ***