How to determine whether yum have changed something from a script

"Fajar A. Nugraha" <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <[email protected]>
Here's the case. I need to create a script which basically runs yum -y
update, and after runs another script whose action depends on what yum did.

yum errors can be checked from the return code, but it seems that a
successful update and no update at all returns the same return code : 0.

Is there a scriptable-way to test whether yum did anything, other than
grepping the string "No Packages marked for Update" from yum output?

Regards,

Fajar

_______________________________________________
Yum mailing list
[email protected]
https://lists.dulug.duke.edu/mailman/listinfo/yum
smime.p7s (application/x-pkcs7-signature, 3.2 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.