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

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
cyberpatrol
Posts: 13
Joined: 26. Dec 2012, 01:27

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

Post 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.
Last edited by cyberpatrol on 8. Mar 2013, 13:58, edited 1 time in total.
djemos
Salix Warrior
Posts: 1464
Joined: 29. Dec 2009, 13:45
Location: Greece

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

Post by djemos »

Use whichpkg script
Also try
slapt-get --search file_name
or
grep file_name /var/log/packages/*
cyberpatrol
Posts: 13
Joined: 26. Dec 2012, 01:27

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

Post 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.
Post Reply