OK so I figured zypper is like apt-get which also can’t search for files, so for this I have to use the lower level package manager like dpkg viz rpm, and sure enough the manpage gave me:
although using the rpm version is faster since it doesn’t care about
repositories, and the command above will work even if you do not have
something installed but want to find its package from available repositories:
rpm -qf /usr/bin/aria2c
–
Good luck.
If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below…
On 12/05/2014 07:06 AM, jazcykel wrote:
>
> What about simply “rpm -qa”?
>
> Filter it with grep like “rpm -qa | grep <matchstring>”
‘rpm -qa’ returns package names, which does not tell you all of the files
within the packages, so it does not meet the needs of finding the package
from the file like the other options will, either with ‘rpm’ or ‘zypper’.
–
Good luck.
If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below…
On 2014-12-05 14:46, malcolmlewis wrote:
>
> Hi
> Use the provides option;
>
> Code:
> --------------------
>
> zypper se --provides /usr/bin/aria2c
>
> --------------------
Interesting. It should tell about not yet installed packages, as long as
they are on enabled repos.
For a local search, you can use “pin”. It searches on a gziped list of
files, obtained typically from the DVD. There is an equivalent file, on
at least the oss and non-oss repo, but they are two files and you need
to join them with an editor to get meaningful information.
Then there is “webpin”, which does a query on an external server, having
the advantage to the opensuse search that it searches for files
(sometimes), not only packages, and that it includes packman. And it has
the disadvantage that it doesn’t always work.
Telcontar:~ # webpin ffmpeg
20 results (8 packages) found for "ffmpeg" in openSUSE_131
* ffmpeg: Hyper fast MPEG1/MPEG4/H263/RV and AC3/MPEG audio encoder
- 2.0.9.1 [home:mopp:tvheadend]
- 2.1.3.1.2 [packman]
* ffmpeg-tools: Hyper fast MPEG1/MPEG4/H263/RV and AC3/MPEG audio encoder
- 2.1.3.1.2 [packman]
* ffmpeg1: Hyper fast MPEG1/MPEG4/H263/RV and AC3/MPEG audio encoder
- 1.0.8.4.3 [packman]
.....
but:
cer@Telcontar:~> webpin --by-content /usr/bin/aria2c
FAILED: received error from server: 404 Not Found
cer@Telcontar:~>
–
Cheers / Saludos,
Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)
On 2014-12-05 17:46, arvidjaar wrote:
>
> robin_listas;2680938 Wrote:
>>
>> Then there is “webpin”, … it doesn’t always work.
>>
>
> Did you try to contact author? He seems to be responsive.
It hasn’t worked right since years. It appeared long ago, then the
server was disabled, too much load because of the success, and after
several years somebody set up another server and another client.
And this new setup has had problems since created. Surely they know.
–
Cheers / Saludos,
Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)