How to monitor yum package lists cleanly?

Tom Limoncelli <[email protected]> Wed, 13 Jul 2016 09:39:30 -0400
Newsgroups gmane.linux.rpm.yum
Message-ID <CAOWqsAiRCQYS0tUPqAM4mMYOtztOKxC68v4zF_PCOJic1fTC2g@mail.gmail.com>
--===============4899153026602099672==
Content-Type: multipart/alternative; boundary=001a1141308c01b0680537848533

--001a1141308c01b0680537848533
Content-Type: text/plain; charset=UTF-8

We need to gather (a) the list of installed packages, (b) the list of
packages that need to be upgraded.  However, we have a design requirement
to gather this frequently (every 5 minutes).

How can we gather this information and be as unobtrusive as possible?  i.e.
not use a lot of CPU, get in the way of others, etc.

We've experimented with running "yum list installed -q" and "yum list
check-updates -q".  However we find that sometimes they run for a long time
(longer than 5 minutes).  In that case, we want cleanly be able to kill
them.  (We'd rather not collect a value for that 5-minute interval rather
than cause problems).   Our experiments with sending SIGINT left a lot of
transaction files around, which indicates to us that we should be doing
something different.

Suggestions?

Tom

--001a1141308c01b0680537848533
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">We need to gather (a) the list of installed packages, (b) =
the list of packages that need to be upgraded.=C2=A0 However, we have a des=
ign requirement to gather this frequently (every 5 minutes).<div><div><br><=
/div><div><div>How can we gather this information and be as unobtrusive as =
possible? =C2=A0i.e. not use a lot of CPU, get in the way of others, etc.</=
div><div><br></div><div>We&#39;ve experimented with running &quot;yum list =
installed -q&quot; and &quot;yum list check-updates -q&quot;.=C2=A0 However=
 we find that sometimes they run for a long time (longer than 5 minutes).=
=C2=A0 In that case, we want cleanly be able to kill them. =C2=A0(We&#39;d =
rather not collect a value for that 5-minute interval rather than cause pro=
blems). =C2=A0 Our experiments with sending SIGINT left a lot of transactio=
n files around, which indicates to us that we should be doing something dif=
ferent.</div></div><div><br></div><div>Suggestions?</div><div><br></div><di=
v>Tom</div><div><br></div>







</div></div>

--001a1141308c01b0680537848533--

--===============4899153026602099672==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Yum mailing list
[email protected]
http://lists.baseurl.org/mailman/listinfo/yum

--===============4899153026602099672==--