Red Hat Bugzilla – Bug 179483
yum disallows regular expression searches
Last modified: 2014-01-21 17:53:27 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.7.12) Gecko/20050922 Fedora/1.0.7-1.1.fc4 Firefox/1.0.7
Description of problem:
Yum does not allow regular expressions in "search" command.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. yum search "^php"
Actual Results: No Matches found
Expected Results: php
you're actually best off just typing in the word you're looking for if you're
doing a search w/o any globs or regexes.
if you're looking for a package name don't use search at all.
use yum list:
yum list php\*
that will get you the answers you want much better and faster.
but we won't be adding regexes there, either. Distinguishing b/t regexes and
file globs is too much for way too little benefit.