On Tuesday 08 November 2016, Patrick Shanahan wrote:
* Ruediger Meier
[11-08-16 12:29]: On Tuesday 08 November 2016, Patrick Shanahan wrote:
* Dominique Leuenberger / DimStar
[11-08-16 10:49]:
On Tue, 2016-11-08 at 16:29 +0100, Dominique Leuenberger / DimStar
wrote:
Please do not remove it unless zypper is getting something similar to "yum provides <filename>" which is basically the same as what pin does, but across all known repositories.
zypper search --file-list ?
I see zypper still has a short-coming there: it only finds files of 'installed' packages, which is clearly not good enough.
Then your system is odd or mine :) "zypper se --file-list " w/o "?" shows mucho apps which I do not have installed.
But it seems to be very limitied, that's why I still prefer pin.
1. zypper wants to run as root:
$ zypper se --file-list "socat" Failed to mount glaukos:/exports/var/lib/software/opensuse/distribution/leap/42.1/r epo/non-oss on /var/tmp/AP_0xxuWn9I: Mounting media failed (mount: only root can use "--options" option)
er: 13:10 Crash:~ > zypper se --file-list "socat" Loading repository data... `Reading installed packages...
S | Name | Summary | Type --+-----------------+------------------------------------------------ ----+-------- i | socat | Multipurpose relay for bidirectional data transfer | package
| socat-debuginfo | Debug information for package socat | | package
13:10 Crash:~ >
Yes, it depends on what kind of installation sources you are using and how up-to-date is the cache. In general you cannot assume that it will run as non-root. For me (using NFS sources) zypper serach is unusable.
2. How to search for regex?
$ pin "/bin/.*awk"
zypper se --file-list awk or zypper se awk
w/o regex zypper se -sx awk
I' don't understand how your examples would find only "/bin/.*awk"? BTW how would search for "/usr/share/.*awk"?
3. zypper does not show me the actual found file names but only some packages where the search pattern was found. (like grep would always run with option -l)
4. It's not working correctly at all
$ zypper se --file-list "ncurses.h
does not find ncurses-devel on my Leap 42.1 system.
zypper se -s --provides ncurses.h
LoL I'm talking about files not arbitrary provides. Does zypper se --provides gawkapi.h also work for you? Why "zypper se --file-list gawkapi.h" works but "zypper se --file-list ncurses.h" does not? There is no replacement for pin yet. cu, Rudi -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org