That local cache is often implemented as a drop-in replacement for the upstream package repository, and packages are still installed with the same package manager (yum,apt,pip,npm).
Friend, considering the supply chain attacks going on these days, automatically updating everything, immediately, probably isn't the perfect move either.