How to know which package owns a file in SUSE?

1

A previous question, How do I find out which package owns a file? asked about Debian-based package management. I have the same question for SUSE Enterprise 10, using YaST (or any other tool suitable for the task).

I'm looking for something similar to apt-file or yum whatprovides.

ArthurChamz

Posted 2016-04-25T17:20:56.967

Reputation: 543

Answers

2

for rpm based distributions:

rpm -qf /path/to/file

returns package name-version-release.arch string

for example:

mimi@argusek ~  $ rpm -qf /usr/bin/aclocal
automake-1.15-4.6.noarch

and in SUSE based distributions:

zypper search -f string

while string is searched part of the filelist in package

mimi.vx

Posted 2016-04-25T17:20:56.967

Reputation: 225