Bug 337007

Summary: zypper install --capability by default?
Product: [openSUSE] openSUSE 11.0 Reporter: Michal Marek <mmarek>
Component: libzyppAssignee: Jan Kupec <jkupec>
Status: RESOLVED FIXED QA Contact: Duncan Mac-Vicar <dmacvicar>
Severity: Enhancement    
Priority: P5 - None    
Version: Alpha 2   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Michal Marek 2007-10-26 08:48:51 UTC
'yum install <something>' will also install a package that provides <something>. zypper can do that as well, but one has to say
'zypper install --capability <something>'.

Is it possible to make this a default behavior? It's really useful when coping with renamed packages:

# yum install mysql-devel
...
Installing:
 libmysqlclient-devel    x86_64     5.0.45-27        opensuse          5.3 M

# zypper install mysql-devel
...
package 'mysql-devel' not found
Nothing to do.


(there were at least two reports about missing mysql-devel in 10.3)
Comment 1 Jan Kupec 2007-10-30 15:24:50 UTC
Yes it will become the default, but it needs some tuning yet. There were too many problems with it.
Comment 2 Cristian Rodriguez 2008-04-14 00:44:37 UTC
(In reply to comment #1 from Jan Kupec)
> Yes it will become the default, but it needs some tuning yet. 


Now it needs quite some tunning ;) it is broken

 zypper in --capability /usr/bin/netcat
Given URL is invalid: /usr/bin/netcat (Url scheme is a required component)
Problem downloading the specified RPM file:
Malformed URI:

Please check whether the file is accessible.
Problem with the RPM file specified as '/usr/bin/netcat', skipping.
No valid arguments specified.
Comment 3 Jan Kupec 2008-04-14 14:03:07 UTC
Ooops :O) Will fix that, thanx.
Comment 4 Jan Kupec 2008-04-15 12:42:18 UTC
Fixed in svn, to be in zypper 0.11.1. This feature request nevertheless fulfilled - zypper 0.11.0 now falls back to --by-capability if it does not find the requested package by name. Detail will be described in the man page and wiki soon.