Debian Developers - getting all modified conffiles

This is Interesting: Free IT Magazines  
Home > Archive > Debian Developers > March 2004 > getting all modified conffiles





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author getting all modified conffiles
Oliver Kurth

2004-02-16, 4:34 am

Hi,

I would like to write a script that gives me a list of all modified
conffiles. Not too hard, by parsing /var/lib/dpkg/status and comparing
the md5sums. But it would be easier if I could get the contents of a
particular field of installed packages, 'Conffiles' in my case, by
calling some program. dpkg-deb -f can only be used on .deb files, but
not on installed packages.

Any ideas?

Greetings,
Oliver


Goswin von Brederlow

2004-02-16, 5:34 am

Oliver Kurth <okurth@gmx.net> writes:

> Hi,
>
> I would like to write a script that gives me a list of all modified
> conffiles. Not too hard, by parsing /var/lib/dpkg/status and comparing
> the md5sums. But it would be easier if I could get the contents of a
> particular field of installed packages, 'Conffiles' in my case, by
> calling some program. dpkg-deb -f can only be used on .deb files, but
> not on installed packages.
>
> Any ideas?
>
> Greetings,
> Oliver
>


Ever tried debsums?

MfG
Goswin


--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Oliver Kurth

2004-02-16, 6:34 am

On Mon, 2004-02-16 at 19:46, Goswin von Brederlow wrote:
> Oliver Kurth <okurth@gmx.net> writes:
>
[color=blue]
> Ever tried debsums?


Thanks. But debconf uses /var/lib/dpkg/info/*.md5sums. This is a list of
md5sums of all files in the packages, not just conffiles, and not all
packages have such a list. The last point makes it useless. The md5sums
that are used to determine if a conffile has been modified and lets dpkg
ask if it should overwrite or not are stored in /var/lib/dpkg/status.
debsums does not read that file, AFAIK.

Greetings,
Oliver


Colin Watson

2004-02-16, 8:34 am

On Mon, Feb 16, 2004 at 06:26:36PM +0100, Oliver Kurth wrote:
> I would like to write a script that gives me a list of all modified
> conffiles. Not too hard, by parsing /var/lib/dpkg/status and comparing
> the md5sums. But it would be easier if I could get the contents of a
> particular field of installed packages, 'Conffiles' in my case, by
> calling some program. dpkg-deb -f can only be used on .deb files, but
> not on installed packages.


grep-status (from grep-dctrl)?

--
Colin Watson [cjwatson@flatline.org.uk]


--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Matt Zimmerman

2004-02-16, 11:34 am

On Mon, Feb 16, 2004 at 06:26:36PM +0100, Oliver Kurth wrote:

> I would like to write a script that gives me a list of all modified
> conffiles. Not too hard, by parsing /var/lib/dpkg/status and comparing
> the md5sums. But it would be easier if I could get the contents of a
> particular field of installed packages, 'Conffiles' in my case, by
> calling some program. dpkg-deb -f can only be used on .deb files, but
> not on installed packages.
>
> Any ideas?


grep-status -Fstatus -nsconffiles installed

man grep-dctrl for more.

--
- mdz


--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Colin Watson

2004-02-16, 8:33 pm

On Mon, Feb 16, 2004 at 05:02:40PM -0800, Matt Zimmerman wrote:
> On Mon, Feb 16, 2004 at 06:26:36PM +0100, Oliver Kurth wrote:
>
> grep-status -Fstatus -nsconffiles installed


That catches "Status: purge ok not-installed" too. I tend to grep for
'install ok installed'.

--
Colin Watson [cjwatson@flatline.org.uk]


--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Jens Peter Secher

2004-03-29, 4:35 pm

Oliver Kurth <okurth@gmx.net> writes:

> I would like to write a script that gives me a list of all modified
> conffiles.

[...]
> Any ideas?


Not exactly what you want, but I have just uploaded an experimental
version 3.18-2 of changetrack to ...uhm... experimental.

It keeps track of all your conffiles (via /var/lib/dpkg/*conffiles) and
emails you diffs when the conffiles change.

Cheers,
--
Jens Peter Secher
_DD6A 05B0 174E BFB2 D4D9 B52E 0EE5 978A FE63 E8A1 jpsecher get2net dk_


--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com