You are not logged in.
When I install a new Arch system from a running Arch system (e.g. boot off a boot stick, then format hard drive and install) it would be nice to use packages already downloaded instead of downloading them all from scratch from a mirror.
Would save me some downloads, and the mirrors some bandwidth.
But it seems the file structure in the pacman cache, and the file structure of a repository are different. E.g. if
/var/lib/pacman/sync/community.dbactually resided at
/var/lib/pacman/sync/community/community.dband the package files went from
/var/cache/pacman/pkg/into that same directory, I could use a pacman.conf that pointed to
file://var/lib/pacman/syncas my Server, and files already in the cache could be used from there. If I understand that correctly, pacman would automatically fall back to a remote mirror if a file could not be found locally.
Just a thought.
Offline
I know it can be made to work :-) this being one way, another being a bunch of symlinks. Just thought it would be nice if it worked out of the box, and outlined how, in case bandwidth is a concern for anybody.
Offline
Why go to the extent of faking a repo? If the cache dir of the existing install is available locally, just bind mount it to cache dir of the new install (or the cache dir of the running install and use 'pacstrap -c' ). Or have I completely missed the point here?
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline