Re: dpkg secrets
On Mon, 23 Feb 1998, David Stern wrote:
> On Mon, 23 Feb 1998 04:28:22 +0100, Remco Blaakmeer wrote:
> > On Sun, 22 Feb 1998, David Stern wrote:
> >
> > > Is there a nice way to determine when I installed a package?
> > >
> > > Right now I'm manually comparing my /var/lib/dpkg/status* files.
> >
> > One way to see when you last installed or upgraded a package, is to look
> > at the modification time of the /usr/doc/<package-name> directory, since
> > at least one new file (the new changelog) is installed into this
> > directory at every upgrade.
> >
> > Not a very nice way, but it works for the majority of the packages.
>
> I never even knew that directories time/date were modified when a file
> was written, but I see you're absolutely correct, and this is a pretty
> cool idea.
I don't think the directory time/date is changed when you write to an
already existing file. It does change when you create a new file, and that
is exactly what dpkg does. It first creates the new file (with a different
name) and if all files are unpacked correctly, all of them are mv'ed to
the correct names.
Remco
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org .
Trouble? e-mail to templin@bucknell.edu .
Reply to: