Re: [PATCH 4 of 4] hard link packages between local caches

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2007-05-30 at 19:15 +0100, Daniel P. Berrange wrote:
> When syncing multiple repositories across many architectures there will be
> a fairly large number of duplicate RPMs present in all repositories. This
> is particularly true of x86_64 multilib distros which share most of the
> i386 packages. Downloading many GB of packages for x86_64 repo which are
> already present in a i386 synced repo is wasteful of time, disk space and
> bandwidth. So this patch adds an extra argument --package-cache which takes
> a directory path. This argument can be repeated multiple times. Before 
> downloading a package, reposync will check each of these directories to see
> if they already contain a copy of the package. If so, the local package will
> be hard-linked into the destdir.
> 
> Typical usage would be to list the i386 repo cache, when running a sync of
> the x86_64 repository, and vica-verca.
> 
> To give an idea of the saving, Fedora rawhide currently has ~7400 rpms in
> i386 repos, and 13,000 in x86_64 trees. ~6900 of these RPMs where present
> in both trees. Hardlinking saved 8 GB of disk space & avoid 8 GB of file
> downloads :-)
> 

This patch looks good, but I'd be happier if you would check the
checksum from the package to make sure it matches the remote metadata
instead of just relying on name, size, etc.


-sv


_______________________________________________
Yum mailing list
Yum@xxxxxxxxxxxxxxxxxxxx
https://lists.dulug.duke.edu/mailman/listinfo/yum

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux