Re: Re: apt-diff: a tool to diff filesystem content against APT

2010-12-16 Thread Tristan Schmelcher
On Thu, Dec 16, 2010 at 3:00 PM, Tristan Schmelcher wrote: >>> See also dpkg-query -f '${Conffiles}' -W . >> >> Aha! It gets them from /var/lib/dpkg/status. Should be easy to tap into. >> >> > > I've changed apt-diff to make use of this, and it has improved speed > by 25% when diff'ing my entire f

Re: Re: apt-diff: a tool to diff filesystem content against APT

2010-12-16 Thread Tristan Schmelcher
>> See also dpkg-query -f '${Conffiles}' -W . > > Aha! It gets them from /var/lib/dpkg/status. Should be easy to tap into. > > I've changed apt-diff to make use of this, and it has improved speed by 25% when diff'ing my entire filesystem! Takes only 6 minutes now. :) -- To UNSUBSCRIBE, email to

Re: apt-diff: a tool to diff filesystem content against APT

2010-12-16 Thread Guillem Jover
Hi! On Sun, 2010-12-12 at 01:41:38 -0600, Peter Samuelson wrote: > [brian m. carlson] > > IIRC, the reason md5sums of conffiles are shipped is to determine > > whether they have been changed by the administrator so that dpkg > > knows whether to automatically replace them with newer versions or >

Re: apt-diff: a tool to diff filesystem content against APT

2010-12-14 Thread Goswin von Brederlow
Tristan Schmelcher writes: > On Thu, Dec 9, 2010 at 11:12 PM, Goswin von Brederlow > wrote: >> Osamu Aoki writes: >> >>> On Fri, Dec 10, 2010 at 12:06:45AM +0900, Osamu Aoki wrote: Hi, On Wed, Dec 08, 2010 at 12:52:28PM -0800, Tristan Schmelcher wrote: > On Tue, Dec 7, 2010

Re: apt-diff: a tool to diff filesystem content against APT

2010-12-11 Thread Peter Samuelson
> On Fri, Dec 10, 2010 at 10:30:02PM -0600, Peter Samuelson wrote: > > "Note that this information is redundant" - that's rich. As though > > the entire md5sums file weren't redundant. (I.e., could easily be > > generated at unpack time.) People seem to hold on to their reasons > > why it's imp

Re: apt-diff: a tool to diff filesystem content against APT

2010-12-11 Thread brian m. carlson
On Fri, Dec 10, 2010 at 10:30:02PM -0600, Peter Samuelson wrote: > [Osamu Aoki] > > As I read manpage of dh_md5sums, it states: > >-x, --include-conffiles > >Include conffiles in the md5sums list. Note that this > > information is redundant since it is included elsewhere in debi

Re: Re: apt-diff: a tool to diff filesystem content against APT

2010-12-11 Thread Tristan Schmelcher
> The *.conffiles files in /var/lib/dpkg/info have the checksums of all Don't seem to ... $ cat /var/lib/dpkg/info/*.conffiles | head /etc/a2ps.cfg /etc/a2ps-site.cfg /etc/emacs/site-start.d/50a2ps.el /etc/bash_completion.d/ack-grep /etc/acpi/events/powerbtn /etc/acpi/powerbtn.sh /etc/init/acpid.

Re: apt-diff: a tool to diff filesystem content against APT

2010-12-10 Thread Peter Samuelson
[Osamu Aoki] > As I read manpage of dh_md5sums, it states: >-x, --include-conffiles >Include conffiles in the md5sums list. Note that this > information is redundant since it is included elsewhere in debian > packages. "Note that this information is redundant" - that's rich.

Re: apt-diff: a tool to diff filesystem content against APT

2010-12-10 Thread Russ Allbery
Osamu Aoki writes: > As I read manpage of dh_md5sums, it states: >-x, --include-conffiles >Include conffiles in the md5sums list. Note that this > information is redundant since it is included elsewhere in debian > packages. > I have no idea what this is. The *.conffiles fil

Re: apt-diff: a tool to diff filesystem content against APT

2010-12-10 Thread Osamu Aoki
HI, On Fri, Dec 10, 2010 at 12:02:44PM -0800, Tristan Schmelcher wrote: > On Thu, Dec 9, 2010 at 11:12 PM, Goswin von Brederlow > wrote: > > Osamu Aoki writes: > > > >> On Fri, Dec 10, 2010 at 12:06:45AM +0900, Osamu Aoki wrote: > >>> Hi, > >>> > >>> On Wed, Dec 08, 2010 at 12:52:28PM -0800, Tr

Re: apt-diff: a tool to diff filesystem content against APT

2010-12-10 Thread Tristan Schmelcher
On Thu, Dec 9, 2010 at 11:12 PM, Goswin von Brederlow wrote: > Osamu Aoki writes: > >> On Fri, Dec 10, 2010 at 12:06:45AM +0900, Osamu Aoki wrote: >>> Hi, >>> >>> On Wed, Dec 08, 2010 at 12:52:28PM -0800, Tristan Schmelcher wrote: >>> > On Tue, Dec 7, 2010 at 11:30 PM, Goswin von Brederlow >>>

Re: apt-diff: a tool to diff filesystem content against APT

2010-12-09 Thread Goswin von Brederlow
Osamu Aoki writes: > On Fri, Dec 10, 2010 at 12:06:45AM +0900, Osamu Aoki wrote: >> Hi, >> >> On Wed, Dec 08, 2010 at 12:52:28PM -0800, Tristan Schmelcher wrote: >> > On Tue, Dec 7, 2010 at 11:30 PM, Goswin von Brederlow >> > wrote: >> > > Tristan Schmelcher writes: >> > >>> how does it deal

Re: apt-diff: a tool to diff filesystem content against APT

2010-12-09 Thread Osamu Aoki
On Fri, Dec 10, 2010 at 12:06:45AM +0900, Osamu Aoki wrote: > Hi, > > On Wed, Dec 08, 2010 at 12:52:28PM -0800, Tristan Schmelcher wrote: > > On Tue, Dec 7, 2010 at 11:30 PM, Goswin von Brederlow > > wrote: > > > Tristan Schmelcher writes: > > >>> how does it deal with configurations generated

Re: apt-diff: a tool to diff filesystem content against APT

2010-12-09 Thread Osamu Aoki
Hi, On Wed, Dec 08, 2010 at 12:52:28PM -0800, Tristan Schmelcher wrote: > On Tue, Dec 7, 2010 at 11:30 PM, Goswin von Brederlow > wrote: > > Tristan Schmelcher writes: > >>> how does it deal with configurations generated in postinstall? > I find debsums to be too basic for my needs. apt-diff is

Re: apt-diff: a tool to diff filesystem content against APT

2010-12-08 Thread Tristan Schmelcher
On Tue, Dec 7, 2010 at 11:05 PM, Lucas Nussbaum wrote: > On 07/12/10 at 17:45 -0800, Tristan Schmelcher wrote: >> (I'm not subscribed to this list, please CC me on replies.) >> >> I have recently written a tool I call "apt-diff" to compare filesystem >> content against APT. It is intended for inve

Re: apt-diff: a tool to diff filesystem content against APT

2010-12-08 Thread Olaf van der Spek
On Wed, Dec 8, 2010 at 9:52 PM, Tristan Schmelcher wrote: >> Isn't debsums already filling that nieche? >> >> MfG >>        Goswin >> > > I find debsums to be too basic for my needs. apt-diff is my attempt to > improve upon it. I often want to answer the question "how does package > X on my machin

Re: apt-diff: a tool to diff filesystem content against APT

2010-12-08 Thread Tristan Schmelcher
On Tue, Dec 7, 2010 at 11:30 PM, Goswin von Brederlow wrote: > Tristan Schmelcher writes: > >>> how does it deal with configurations generated in postinstall? >> >> Only files shipped by a package (i.e., appear in its .list file) can be >> diff'ed, so if a configuration file was generated from sc

Re: apt-diff: a tool to diff filesystem content against APT

2010-12-07 Thread Lucas Nussbaum
On 07/12/10 at 17:45 -0800, Tristan Schmelcher wrote: > (I'm not subscribed to this list, please CC me on replies.) > > I have recently written a tool I call "apt-diff" to compare filesystem > content against APT. It is intended for investigating problems where > packaged files get modified/delete

Re: apt-diff: a tool to diff filesystem content against APT

2010-12-07 Thread Goswin von Brederlow
Tristan Schmelcher writes: >> how does it deal with configurations generated in postinstall? > > Only files shipped by a package (i.e., appear in its .list file) can be > diff'ed, so if a configuration file was generated from scratch in a > postinst then apt-diff can't show a diff for it. But it

Re: Re: apt-diff: a tool to diff filesystem content against APT

2010-12-07 Thread Tristan Schmelcher
> how does it deal with configurations generated in postinstall? Only files shipped by a package (i.e., appear in its .list file) can be diff'ed, so if a configuration file was generated from scratch in a postinst then apt-diff can't show a diff for it. But it does keep track of how many files it

Re: apt-diff: a tool to diff filesystem content against APT

2010-12-07 Thread Salvo Tomaselli
Hello, > I also > find it useful for figuring out what customizations I have made to my > system after I have forgotten about them. how does it deal with configurations generated in postinstall? Bye -- Salvo Tomaselli signature.asc Description: This is a digitally signed message part.

apt-diff: a tool to diff filesystem content against APT

2010-12-07 Thread Tristan Schmelcher
(I'm not subscribed to this list, please CC me on replies.) I have recently written a tool I call "apt-diff" to compare filesystem content against APT. It is intended for investigating problems where packaged files get modified/deleted after installing them from APT (e.g., by user customization, a