[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dpkg -L dpkg-query -L do not find all the files from a package



On Tue, Sep 06, 2005 at 03:46:34AM +0000, The Fungi wrote:
> On Mon, Sep 05, 2005 at 11:18:01PM -0400, Angelina Carlton wrote:
> [...]
> > I was told on #debian-devel that, yes it is in-precise, so I am just
> > wondering why would it *not* list all the files? What defines if a file
> > is included or excluded from this list.
> [...]
> 
> A quick look through the dpkg source will tell you, but it is
> precise for certain definitions of "all files". Specifically, -L
> will show you all files contained (archived) within the package, but
> not files created by post-install scripts, by the installed
> applications themselves, et cetera. In short, there is no way for
> dpkg to know if a script or application within the package will
> spawn additional files, and it is the duty of the package maintainer
> to clean these up on removing/purging the package (generally in
> per/post-remove scripts). Hope that helps...
> -- 
Hi Angelina,
from my poking around the FS, /var/lib/dpkg/info/ is where IIRC the info
comes from. This contains the <PKGNAME>.{post|pre}{rm|install} files as well as
the <PKGNAME>.list file and maybe one other. the <PKGNAME>.list file
IIRC is where dlocate/dpkg -l and others get the list of files
installed. But as the person mentioned, it does not include files that
are created in removal, install, first run, inititiaztion, etc., only
those included the 'ar'.
Cheers,
Kev
-- 
counter.li.org #238656 -- goto counter.li.org and be counted!
      `$'         $'         
       $          $                      _
 ,d$$$g$  ,d$$$b. $,d$$$b`$' g$$$$$b $,d$$b
,$P'  `$ ,$P' `Y$ $$'  `$ $  "'   `$ $$' `$
$$     $ $$ggggg$ $     $ $ ,$P""  $ $    $
`$g. ,$$ `$$._ _. $ _,g$P $ `$b. ,$$ $    $
 `Y$$P'$. `Y$$$$P $$$P"' ,$. `Y$$P'$ $.  ,$.

Attachment: signature.asc
Description: Digital signature


Reply to: