Bug 365271 - rpm has no command line option to ignore case
Summary: rpm has no command line option to ignore case
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: rawhide
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Panu Matilainen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-11-03 15:22 UTC by Roland Wolters
Modified: 2007-11-30 22:12 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2007-11-05 06:26:21 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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. 


Note You need to log in before you can comment on or make changes to this bug.