Bug 767925

Summary: [RFE] `package search --name "vim-*"` missing
Product: [Retired] Katello Reporter: Garik Khachikyan <gkhachik>
Component: Webservice APIAssignee: Ivan Necas <inecas>
Status: CLOSED UPSTREAM QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0CC: lzap, mkoci, sghai
Target Milestone: ---Keywords: Triaged
Target Release: 1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-07-17 13:09:50 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Garik Khachikyan 2011-12-15 09:26:02 UTC
Description of problem:
Just after having synchronized RHEL6 content I realized that searching for a package ID (for requesting `package info`) is not an easy thing - and package list | grep "<pattern>" needed there.
I guess would be much more easy to have `package search [options]` implemented.

Version-Release number of selected component (if applicable):
recent katello-cli: katello-cli-0.1.26-1.git.0.c8327e0.el6.noarch

How reproducible:
Always

Steps to Reproduce:
1.try to get package id
2.
3.
  
Actual results:
no way but to do package list and grep the info from there.

Expected results:
easy way to get the list of your interest from the whole package list (like: package search).

Additional info:

Comment 1 Lukas Zapletal 2012-04-24 10:47:44 UTC
d146685	

Merge pull request #23 from iNecas/bz767925

Comment 2 Sachin Ghai 2012-05-15 11:14:30 UTC
Verified with following katello build:

katello-cli-0.2.33-1.el6.noarch
katello-0.2.35-1.el6.noarch


package search feature is available and working fine.

katello> package search --environment Library --org ACME_Corporation --product fake_repo --repo x86 --query ca*
--------------------------------------------------------------------------------
                   Package List For Repo 777 and Query ca*

 Id                                     Name    Filename                
--------------------------------------------------------------------------------
 cbe3631e-644d-4e53-9005-15a298955d2e   camel   camel-0.1-1.noarch.rpm  
 b2879e09-606d-48f4-90d8-c2c344697133   cat     cat-1.0-1.noarch.rpm    
katello> package search --environment Library --org ACME_Corporation --product fake_repo --repo x86 --query wa*
--------------------------------------------------------------------------------
                   Package List For Repo 777 and Query wa*

 Id                                     Name     Filename                  
--------------------------------------------------------------------------------
 feee1c62-7118-4af4-b825-831333ddb65d   walrus   walrus-5.21-1.noarch.rpm  
 4a6a7c4b-d243-4e5d-ae96-bd0c47224739   walrus   walrus-0.71-1.noarch.rpm

Comment 3 Bryan Kearney 2012-07-17 13:09:50 UTC
Moving all community bugs with fixes to closed.