[SOLVED] Speed up installations/upgrades
-
Hi there~
What "shocked" (figure of speech) me a little after a few fresh installs or updates on some rpi is that ... apt update can be called by the scripts like 3, 4 (or even more) times in a row.
Wouldn't be interresting to add a state variable like what's following ?- isChecked = true
- ...{do install/update of all sources/packages}...
- isChecked = false
- ...{return to shell script}...
But still, RP rox!
Nice sunny and warm Sunday everyone ^^ -
@OkTekk we already do that
-
The only place where it is forced is when installing Kodi, so a fresh list is grabbed when adding the repository (Although the check could be moved to when the repo is added). The rest should do apt-get update once only (If you think it's doing it more than once in a single run, I will need to see a log from RetroPie-Setup/logs)
-
well..with you saying that i've recalled those times and it might have been because i install -as well- almost every optionnals and experimentals stuffs :)
thanks for your answer ! -
@OkTekk apt-get update should still only once (excl kodi). Apt-get install is called as needed though when each package checks it's dependencies
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.