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

Re: Find which package has installed some file under /etc



On 2011-12-18 02:11:33 +0100, Michael Biebl wrote:
> On 18.12.2011 01:00, Vincent Lefevre wrote:
> > Is there a way to find which package has installed some file
> > under /etc? For conffiles, there is dlocate or "dpkg -S", but
> > what about the other files (installed in postinst)?
> 
> ucf is also used to manage configuration files.
> As those files are not registered in the dpkg db, you need to use ucfq
> to query the ucf internal database.

Thanks, this is OK for dictd:

xvii:~> ll /etc/default/dictd
-rw-r--r-- 1 root root 857 2009-06-04 19:27:26 /etc/default/dictd
xvii:~> dpkg -S /etc/default/dictd
dpkg-query: no path found matching pattern /etc/default/dictd.
xvii:~> ucfq /etc/default/dictd
Configuration file                            Package             Exists Changed
/etc/default/dictd                            dictd               Yes    Yes

However there are still packages for which neither dpkg -S, nor ucfq
gives information about the package:

xvii:~> ll /etc/default/ntfs-3g
-rw-r--r-- 1 root root 48 2011-12-08 00:21:36 /etc/default/ntfs-3g
xvii:~> dpkg -S /etc/default/ntfs-3g
dpkg-query: no path found matching pattern /etc/default/ntfs-3g.
xvii:~> ucfq /etc/default/ntfs-3g
Configuration file                            Package             Exists Changed
/etc/default/ntfs-3g                                              Yes

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)


Reply to: