How can I know to which ubuntu package does a specified file (not on my fs) belongs?

Cybe R. Wizard cyber_wizard at mindspring.com
Thu Mar 31 03:41:33 UTC 2011


On Wed, 30 Mar 2011 17:31:58 -0700
NoOp <glgxg at sbcglobal.net> wrote:

> On 03/30/2011 02:02 PM, Nils Kassube wrote:
> > Kevin Wilson wrote:
> >> I want to know how can I find (with apt-get), to which ubuntu
> >> package does a certain file (which **does not** exist on my
> >> filesystem) belong.
> > 
> > AFAIK apt-get doesn't offer that option but you can install the
> > package "apt-file". Then run the command
> > 
> > sudo apt-file update
> > 
> > once and after that you can search for individual files with the
> > command
> > 
> > apt-file search filename
> 
> That doesn't seem to work even with installed package files:
> 
> $ apt-file search gnome-default-applications.xml
> $
> 
> That file is provided in the 'capplets-data' package:
>  http://packages.ubuntu.com/maverick/all/capplets-data/filelist
> [/usr/share/gnome-control-center/default-apps/gnome-default-applications.xml]
> 
> So it's a good question & one that I'd like to know as well.
> 
> (Alan's method is the one that I normally use but just using:
> http://packages.ubuntu.com/
>   [Search the contents of packages|packages that contain files named
> like this]
> 
Try:
<apt-file find crypto.h>
you may need to update the cache directory by first running:
<apt-file update>

Cybe R. Wizard
-- 
When Windows are opened the bugs come in.
	Winduhs




More information about the ubuntu-users mailing list