How do I discover what package provides a certain file?

Joel Bryan Juliano joelbryan.juliano at gmail.com
Sat Feb 24 04:05:28 UTC 2007


On 2/24/07, Eric Dunbar <eric.dunbar at gmail.com> wrote:
>
> Hi all, I was trying to figure out what package on my Ubuntu 6.06 LTS
> box provided a certain file.
>

Hi Eric,

There is a program called 'apt-file' that search for a particular files or
patterns on the packages.
At first use you need to apt-get update, then run apt-file update to
download the contents.tar.gz (around 20MB) file in the ubuntu repository.

then do (i.e. apt-file search gtk.h)

Hope this helps
Joel

-- 
"I use to fuel my car with water, now I switched back to gasoline because my
cigarette lighter doesn't work" - People who use Linux but switched back to
Windows.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20070224/48a70303/attachment.html>


More information about the ubuntu-users mailing list