Run apt update only when neccesary #334
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Is your feature request related to a problem? Please describe
Most often using I am using kiauh to setup a full klipper installation with web frontend on a pi
Each step will kick of an
apt updatewhich takes quite some time, especially on older hardware/pisDescribe the solution you'd like
Check when apt cache was last updated before running
apt update.If apt cache is still quite recent (e.g. last update <4h ago), don't run
apt updateto save some time.Describe alternatives you've considered
Additional information
Example solution bash script on Ask Ubuntu