How to determine whether yum have changed something from a script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
Yum mailing list
Yum@xxxxxxxxxxxxxxxxxxxx
https://lists.dulug.duke.edu/mailman/listinfo/yum

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux