Bug 365271

Summary: rpm has no command line option to ignore case
Product: [Fedora] Fedora Reporter: Roland Wolters <roland.wolters>
Component: rpmAssignee: Panu Matilainen <pmatilai>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: pnasrat
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-11-05 06:26:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Roland Wolters 2007-11-03 15:22:03 UTC
Description of problem:
rpm can only show direct matches. While most unix tools have also a command 
line option to ignore cases (most often "-i"; see locate, grep, etc.) rpm is 
missing such an option.

How reproducible:
$ rpm -q policykit
The package policykit is not installed
$ rpm -q PolicyKit
PolicyKit-0.6-1.fc8

Expected results:
There should be an option to make the search case sensitive. "-i" is already 
reserved though for installation.

Comment 1 Jeff Johnson 2007-11-03 18:13:58 UTC
Heh, -i has 3 different, contextually dependent usages in rpm already and you want case insensitivity?!?

Buy an IBM terminal, or superglue your shift-lock, if you want case insensitivity.

Comment 2 Panu Matilainen 2007-11-05 06:26:21 UTC
"rpm -qa|grep -i policykit" if you want case-insensitive query, rpm has way too
many cli-switches already.

I'd prefer forcing lower case for package names as distro policy to avoid the
issue entirely with tHEsE CraZY pACKagE NamES but that's just me...

Comment 3 Roland Wolters 2007-11-05 09:34:27 UTC
rpm -qa takes a lot of time on old machines with lots of packages installed. 
That is far from user friendly.

Also, the inconsistency compared with other linux tools stays in the world by 
not fixing the issue.

Comment 4 Panu Matilainen 2007-11-05 10:09:38 UTC
"ls" can take a lot of time on on old machines in large directories, yet it
doesn't come with ignore-case option either.