9014df9472
Doing a yum update with an explicit list of packages where many of those packages are already up-to-date has a significant time penalty. This change includes version comparison to remove packages from packages_for_update where the installed and available versions are identical. This change also only installs yum-plugin-priorities if it is not already installed, for some extra time saving. For a specific example of time saved, I had a centos-binary-rsyslog-base with the following timings. Without this change ------------------- packages passed to yum update: 87 packages actually updated: 11 time taken 35s With this change ------------------- packages passed to yum update: 11 packages actually updated: 11 time taken 10s This time saved should add up over all of the container images during image prepare in CI. Change-Id: Ie282acd1cdc0de8d875959ec9578122fe34f98ac |
||
---|---|---|
.. | ||
dev_install.sh | ||
rpm_install.sh | ||
yum_update.sh |