Page 1 of 1

[Solved] How to find the package which a file belongs to?

Posted: 8. Mar 2013, 00:34
by cyberpatrol
Can anyone tell me, how I can find out to which package a file belongs?
I know how to get a file list of a package if I know the package name, but not how to get the package name if I only have a file name.

Re: How to find the package which a file belongs to?

Posted: 8. Mar 2013, 13:17
by djemos
Use whichpkg script
Also try
slapt-get --search file_name
or
grep file_name /var/log/packages/*

Re: How to find the package which a file belongs to?

Posted: 8. Mar 2013, 13:57
by cyberpatrol
djemos wrote:slapt-get --search file_name
This unfortunately doesn't work.
djemos wrote:grep file_name /var/log/packages/*
That's the most simple and easiest way, I guess.

But I will try the script, too.

Thanks.