Re: dpkg / apt equivalent to 'rpm -qf'?
John Hasler <john@dhh.gt.org> writes:
> Martin writes:
>> One possibility would be that the maintainer script which creates the
>> file stores the filename in something like
>> "/var/lib/dpkg/info/PACKAGE.createdfiles".
>
> Gaak! No! The archive must _only_ be accessed via the packaging
> system tools.
I didn't mean to imply otherwise. In this scenario, the maintainer
scripts would modify the ".createdfiles" file through packaging system
tools. Come to think of it, the ".createdfiles" file could even be a
static part of the package. If it contains a list of all files the
maintainer scripts /potentially/ create, it wouldn't need to be modified
at all.
Even if /var/lib/dpkg/info is not the right place, my point still stands
that it would technically feasible to maintain such a list of created
files for each package. :)
Martin
--
,--. ,= ,-_-. =.
/ ,- ) Martin Dickopp, Dresden, Germany ((_/)o o(\_))
\ `-' http://www.zero-based.org/ `-'(. .)`-'
`-. \_/
Reply to: