How can I know to which ubuntu package does a specified file (not on my fs) belongs?
NoOp
glgxg at sbcglobal.net
Thu Mar 31 20:53:25 UTC 2011
On 03/31/2011 12:20 AM, Nils Kassube wrote:
> NoOp wrote:
...
>> That doesn't seem to work even with installed package files:
>>
>> $ apt-file search gnome-default-applications.xml
>
> I don't think it depends on the state of the file because apt-file uses
> its own database of filenames and doesn't care about the database of
> installed files / packages. However the apt-file command probably
> doesn't know about files which are not directly included in any package
> but are written e.g. by a post-install script. As an example I can't
> find a package for /etc/passwd neither with apt-file nor with "dpkg -S".
>
> Another problem could be your sources.list. If you search for a package
> in the universe repository, that repository should have been included in
> your /etc/apt/sources.list when you used the command "sudo apt-file
> update". However capplets-data (the package for gnome-default-
> applications.xml) is in main, so it is unlikely this was the case here.
> Are you sure you used "sudo apt-file update" before you searched for the
> file? On my Lucid machine I get the expected result while the file in
> question isn't installed (I don't use Gnome). And even on a Ubuntu Lucid
> in a VM which does have the file installed, I get the expected result.
>
>
> Nils
>
Fingered it out... 'sudo' :-)
$ sudo apt-file search gnome-default-applications.xml
capplets-data:
/usr/share/gnome-control-center/default-apps/gnome-default-applications.xml
More information about the ubuntu-users
mailing list