RPM Community Forums

Mailing List Message of <rpm-devel>

Re: [PATCH]: logging of package install/remove to syslog

From: devzero2000 <pinto.elia@gmail.com>
Date: Fri 22 Feb 2008 - 17:20:04 CET
Message-ID: <b086760e0802220820x6179ecb3g206a6c9e68b0ae35@mail.gmail.com>
yum, on top of rpm, already have this capability. I found this very useful ,
as i use a central syslog. So it
is possible to query the central syslog for patch management information
ex-post (e.g, if all the system have the same version applied).

But, it is only an opinion.

On Thu, Feb 21, 2008 at 10:48 PM, Jeff Johnson <n3npq@mac.com> wrote:

>
> On Feb 21, 2008, at 3:44 PM, Per Øyvind Karlsen wrote:
>
> > Here's an improved and more upstream friendly version of syslog
> > patch from
> > Mandriva which adds logging of install/remove of packages to syslog.
> >
> > It will be disabled by default, but can be activated by
> > %_log_to_syslog macro.
> >
> > Any objections of commiting or ideas of improvement?
>
> Yes.
>
> What needs doing is to add a "append-only" mode to log to file,
> and a "use-syslog" flag to accomodate those that wish,
> that delivers the results of a headerSprintf() queryformat to a log
> file.
>
> Follow the (esentially) logging that already exists to populate /var/
> cache/hrmib
> for use by the net-snmp HR-MIB in rpmdbAdd/rpmdbRemove to see
> where the configurable logging needs to be done.
>
> And imho, logging +foo/-bar is largely pointless for anything other than
> filling up a disk with rubbish. There's too little useful information
> with
> NVRA to be useful for debugging, and rpm already has a more powerful
> database with a query mechanism for storing the useful information, and
> a more powerful verification mechanism to verify that the data is
> indeed,
> reliable.
>
>  A historical, erase-only log might be useful, but that's not what
> your patch
> is aiming to do.
>
> 73 de
> Jeff______________________________________________________________________
> RPM Package Manager                                    http://rpm5.org
> Developer Communication List                        rpm-devel@rpm5.org
>
Received on Fri Feb 22 17:20:06 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.