From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020827 Description of problem: When you try to install a package and the package name contains a glob , rpm attempts to expand the glob. If the glob does not match any filenames, then it exits silently. This is different behavior than one would expect. I have pasted an example below. dgregor@galileo 5.1$ rpm -ivh /var/downloads/ccm-core-cms-devel-5.0.1-6.noarch.rpm error: cannot get exclusive lock on /var/lib/rpm/Packages error: cannot open Packages index using db3 - Operation not permitted (1) error: cannot open Packages database in /var/lib/rpm dgregor@galileo 5.1$ rpm -ivh /var/downloads/ccm-core-cms-devel-5.0.1-6.noarch.rpm2 error: open of /var/downloads/ccm-core-cms-devel-5.0.1-6.noarch.rpm2 failed: No such file or directory dgregor@galileo 5.1$ rpm -ivh /var/downloads/ccm-core-cms-devel-5.0.1-6.noarch.rpm[2] dgregor@galileo 5.1$ Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1.rpm -ivh <package name with glob characters> 2. 3. Actual Results: exits silently if there are no matches Expected Results: warns that no package or file exists and/or that no packages given for install Additional info:
Here's a simpler test case: bash$ ls -al /tmp/abcde ls: /tmp/abcde: No such file or directory bash$ sudo rpm -Uvh /tmp/abcde error: open of /tmp/abcde failed: No such file or directory bash$ sudo rpm -Uvh /tmp/abcde[1] bash$ touch /tmp/abcde bash$ sudo rpm -Uvh /tmp/abcde error: /tmp/abcde cannot be installed bash$
Error message added for gob failure: bash$ rpm -Uvh /tmp/abcde[1] error: File not found by glob: /tmp/abcde[1] Should be in rpm-4.2-0.6 when built.