[zypp-devel] what what-provides provides
In yum, I can use for example "yum provides /usr/bin/base64" to check what package in what repo has /usr/bin/base64. But "zypper what-provides /usr/bin/base64" always says "no providers of '/usr/bin/base64' fouind". So what does what-provides provide? Any equal function in zypper like "yum provides"? Peter -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
On 03/03/2010 04:44 PM, Zhu, Peter J wrote:
In yum, I can use for example "yum provides /usr/bin/base64" to check what package in what repo has /usr/bin/base64. But "zypper what-provides /usr/bin/base64" always says "no providers of '/usr/bin/base64' fouind". So what does what-provides provide? Any equal function in zypper like "yum provides"?
It actually is equal, but not all /usr/bin/* files are included in metadata, and we don't download & parse the entire filelist.xml.gz. We could do this on demand, but there are currently no such plans. Does yum always digest filelist? -- cheers, jano Ján Kupec YaST team ---------------------------------------------------------(PGP)--- Key ID: 637EE901 Fingerprint: 93B9 C79B 2D20 51C3 800B E09B 8048 46A6 637E E901 ---------------------------------------------------------(IRC)--- Server: irc.freenode.net Nick: jniq Channels: #zypp #yast #suse #susecz ---------------------------------------------------------(EOF)---
On Wed, Mar 03, 2010 at 05:05:31PM +0100, Jano Kupec wrote:
On 03/03/2010 04:44 PM, Zhu, Peter J wrote:
In yum, I can use for example "yum provides /usr/bin/base64" to check what package in what repo has /usr/bin/base64. But "zypper what-provides /usr/bin/base64" always says "no providers of '/usr/bin/base64' fouind". So what does what-provides provide? Any equal function in zypper like "yum provides"?
It actually is equal, but not all /usr/bin/* files are included in metadata,
That's actually not true, all /usr/bin/* files are in primary.xml.
and we don't download & parse the entire filelist.xml.gz.
We could do this on demand, but there are currently no such plans.
Uh, that is a planned feature for quite some time now, but it has a low priority as it's not needed for openSUSE.
Does yum always digest filelist?
Yum downloads it if it is needed (i.e. requires is encountered that doesn't match the "standard" patterns). Actually Fedora has quite some packages that have non-standard file requires, so that it gets downloaded very often. Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
On Wednesday 03 March 2010 17:57:20 Michael Schroeder wrote:
On Wed, Mar 03, 2010 at 05:05:31PM +0100, Jano Kupec wrote:
On 03/03/2010 04:44 PM, Zhu, Peter J wrote:
In yum, I can use for example "yum provides /usr/bin/base64" to check what package in what repo has /usr/bin/base64. But "zypper what-provides /usr/bin/base64" always says "no providers of '/usr/bin/base64' fouind". So what does what-provides provide? Any equal function in zypper like "yum provides"?
It actually is equal, but not all /usr/bin/* files are included in metadata,
That's actually not true, all /usr/bin/* files are in primary.xml.
Yes, but in the filelist and not in provides.
I'll enhance WhatProvides to also check the filelists in case of filedeps.
So files listed in primary.xml
and we don't download & parse the entire filelist.xml.gz.
We could do this on demand, but there are currently no such plans.
As long as the 'important' files are listed in primary, we should not have to... -- cu, Michael Andres +------------------------------------------------------------------+ Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4 +------------------------------------------------------------------+ Michael Andres YaST Development ma@novell.com SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0 +------------------------------------------------------------------+ -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
participants (4)
-
Jano Kupec
-
Michael Andres
-
Michael Schroeder
-
Zhu, Peter J