Bug 710822

Summary: Yum displays package names in non-utilitarian format
Product: [Fedora] Fedora Reporter: Kam Leo <a1tmblwd>
Component: yumAssignee: Seth Vidal <skvidal>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: ffesti, james.antill, maxamillion, pmatilai, tla
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-06 13:00:51 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 Kam Leo 2011-06-05 03:15:26 UTC
Description of problem:

Yum displays packages in a format that is not readily usable as a parameter in the command line.   

For example:

$ yum list kernel*
Loaded plugins: refresh-packagekit
Installed Packages
kernel.i686                2.6.38.6-27.fc15     @updates                        
kernel-PAE.i686            2.6.38.6-26.rc1.fc15 @anaconda-InstallationRepo-201105131946.i686
kernel-PAE.i686            2.6.38.6-27.fc15     @updates                        
kernel-PAE-devel.i686      2.6.38.6-26.rc1.fc15 @anaconda-InstallationRepo-201105131946.i686
kernel-PAE-devel.i686      2.6.38.6-27.fc15     @updates                        
kernel-headers.i686        2.6.38.6-27.fc15     @updates                        
Available Packages
kernel-PAEdebug.i686       2.6.38.6-27.fc15     updates                         
kernel-PAEdebug-devel.i686 2.6.38.6-27.fc15     updates                         
kernel-debug.i686          2.6.38.6-27.fc15     updates                         
kernel-debug-devel.i686    2.6.38.6-27.fc15     updates                         
kernel-devel.i686          2.6.38.6-27.fc15     updates                         
kernel-doc.noarch          2.6.38.6-27.fc15     updates 


The command "sudo yum remove kernel-PAE.i686 2.6.38.6-26.rc1.fc15" will fail to remove a specific package. A user would need to manipulate and recompose the output values to get the correct package name. 


Version-Release number of selected component (if applicable):

3.2.29-5.fc15

How reproducible:

Always

Steps to Reproduce:
1. yum list kernel* 
2.
3.
  
Actual results:

$ yum list kernel*
Loaded plugins: refresh-packagekit
Installed Packages
kernel.i686                2.6.38.6-27.fc15     @updates                        
kernel-PAE.i686            2.6.38.6-26.rc1.fc15 @anaconda-InstallationRepo-201105131946.i686
kernel-PAE.i686            2.6.38.6-27.fc15     @updates                        
kernel-PAE-devel.i686      2.6.38.6-26.rc1.fc15 @anaconda-InstallationRepo-201105131946.i686
kernel-PAE-devel.i686      2.6.38.6-27.fc15     @updates                        
kernel-headers.i686        2.6.38.6-27.fc15     @updates                        
Available Packages
kernel-PAEdebug.i686       2.6.38.6-27.fc15     updates                         
kernel-PAEdebug-devel.i686 2.6.38.6-27.fc15     updates                         
kernel-debug.i686          2.6.38.6-27.fc15     updates                         
kernel-debug-devel.i686    2.6.38.6-27.fc15     updates                         
kernel-devel.i686          2.6.38.6-27.fc15     updates                         
kernel-doc.noarch          2.6.38.6-27.fc15     updates 

Expected results:

Package names presented in same format/structure as from the repository. The same format as output by rpm; e.g.

$ rpm -qa kernel*
kernel-headers-2.6.38.6-27.fc15.i686
kernel-2.6.38.6-27.fc15.i686
kernel-PAE-2.6.38.6-26.rc1.fc15.i686
kernel-PAE-devel-2.6.38.6-26.rc1.fc15.i686
kernel-PAE-2.6.38.6-27.fc15.i686
kernel-PAE-devel-2.6.38.6-27.fc15.i686


Output that is usable with cut, copy, or paste operations without requiring additional manipulation.  


Additional info:

Comment 1 seth vidal 2011-06-06 13:00:51 UTC
since I'm not a utilitarian then that makes sense.