Reply
Thread Tools
Posts: 567 | Thanked: 2,966 times | Joined on Oct 2009
#1
Is there a way to query and find out which package(s) deliver a given file?
 
Posts: 540 | Thanked: 387 times | Joined on May 2009
#2
In a Redhat-based distro yum would come in handy with:
yum provides /path/to/file

But as far as on Debian-based (Maemo) I'm not aware of such functionality from apt.
 
Posts: 540 | Thanked: 387 times | Joined on May 2009
#3
Further investigation reveals that dpkg has limited functionality in this area:

# dpkg-query -S /path/to/file

will tell you, however dpkg-query ONLY applies to installed files (this in fact what you asked), however it should be noted that yum provides will tell you the package name (and more detailed information) even if the package isn't installed.

Additionally both of these commands support wildcards.
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#4
There is apt-file for this task.
Apt-file does however has its own database, refreshed with apt-file update. Before you install it you may want to investigate, if the application is optified to not waste space in rootfs.
 
Reply


 
Forum Jump


All times are GMT. The time now is 07:11.