Hi jazzbiker. Believe it or not, I found yet another opportunity for increased efficiency in the
update-everything script, which will further decrease your execution time.
TL;DR explanation:In version 6.1 of the
update-everything script,
tce-audit builddb is always one of the steps. However, it only needs to run if .dep files have changed, so that
tce-audit fetchmissing works properly. Version 7.0 of the script (available at the link in Reply #40) takes this into account.
Detailed explanation:tce-audit builddb produces three files:
/tmp/audit_results.txt
/etc/sysconfig/tcedir/optional/tce.db
/etc/sysconfig/tcedir/optional/tce.lst.
It turns out that
tce-update does not utilize any of these files. I confirmed this not only by examining the
tce-update script, but also by running numerous tests. As far as
tce-update is concerned, it's all about the .md5.txt files
Based on earlier tests, I know that if .dep files have changed and your system is now missing some dependencies, then
tce-audit builddb needs to run before
tce-audit fetchmissing or else the missing dependencies are not fetched.
So here is the current (version 7.0) logic of the script:
Are system's .dep files current?
If yes: Run
tce-update If no: Update the .dep files that are outdated, run
tce-audit builddb, run
tce-audit fetchmissing, run
tce-update