locate file in package?

Roshan Mansinghani rosh1182 at gmail.com
Wed Aug 16 19:25:28 UTC 2006


First, a clarification.  When asking about finding a file in a package, we
must first ask whether or not we are looking for a file in a package that
has been installed or in a package that has not been installed.  Kpackage
allows you to do both.

1. Search for a file from a package that has been installed.

   - Launch KPackage
   - Navigate to:  File -> Find File
   - Search for files

2. Search for a file from a package that has not been installed.

   - Ensure that the package "apt-file" is already installed
   - Launch KPackage
   - Navigate to:  File -> Find File
   - Click the checkbox at the bottom that allows you to search within
   packages that are not installed.
   - Run the search

If this does not answer the question, please indicate if the solution does
not work or if I misunderstood the question

On 8/16/06, Felipe Figueiredo <philsf at ufrj.br> wrote:
>
> On Wednesday 16 August 2006 15:11, D. R. Evans wrote:
> > I have a simple question. Suppose that I want to install a package that
> > will install a particular file, X. How do I determine which package will
> > provide the file X?
>
> Not really what you asked, but may be useful. If you want to know what
> *installed* package has file X you do:
>
> $  dpkg -S X
>
> (no sudo needed)
>
> I don't think there's a built-in way to find filenames of non-installed
> packages. Apparently the cache simply doesn't store that information. Note
> that this was actually needed in RPM-based distributions because the
> dependencies (at least until rpm v3, maybe v4) were not smart enough to
> tell
> you what packages you needed. The information RPM gave you was "I need
> file
> X", and you had to somewhat to find a package with that file. We don't
> suffer
> from this problem.
>
> Of course, if there *IS* a way to find, I would like to be proven wrong.
>
> regards
> FF
>
> --
> kubuntu-users mailing list
> kubuntu-users at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/kubuntu-users/attachments/20060816/3a079e35/attachment.html>


More information about the kubuntu-users mailing list