My problem is that I don't understand how putting the apt cache in RAM is beneficial if what you're trying to do is avoid flash writes. If you're updating the cache, then you're also intending to install or upgrade software, which will write to flash. If it's in RAM and not persisted, forcing you to do an update each time you do an install or upgrade, how does this prevent writing to flash?
So, either I'm not understanding the intent, or I'm not understanding how apt works.
If instead it's best practice to always update before installing, then why not have apt-get install just update the cache each time?
All I see is no benefit but the potential for error (e.g., not getting the version of the package you thought you were getting, or in the best case, confusing errors due to conflicts). I don't see how putting the cache in RAM helps anyone, novice or expert.
Now, if the intent is just to speed up accesses, rather than reduce flash writes, then loading the cache at boot from a store on disk, and accessing the cache in ram, makes sense. However, it seems that in this case, apt-get update should update both the cache and the on-disk store.
In all this, I'm questioning the wisdom of the apt authors, not you or Robert or anyone else on this list.
--
Rick Mann
rm...@latencyzero.com