[Yum] how to utilize /var/cache/yum/*/packages on another machine?

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

 




In message <009c01c6f851$f471dca0$0a0a0a0a@DELORIAN>, "Gary Funck" writes:
>
>We're in the process of upgrading several machines
>(to the latest FC5 updates).  One machine has
>already been updated, and keepcache=1 is asserted
>in its yum.conf file.  Therefore /var/cache/yum/*/packages
>is populated with many of the latest rpm's.
>
>How can we utilize these packages on the other machine
>to avoid downloading 0.6G each of duplicated rpm's on
>each of the target machines?

This is what I am doing:

#!/bin/csh
foreach d (/var/cache/yum/*/{headers,packages}/)
 sudo rsync -azv -e ssh $d witchking.deepsoft.com:$d
 sudo rsync -azv -e ssh $d smaug2.deepsoft.com:$d
end


>
>_______________________________________________
>Yum mailing list
>Yum@xxxxxxxxxxxxxxxxxxxx
>https://lists.dulug.duke.edu/mailman/listinfo/yum
>
--
Robert Heller             -- 978-544-6933
Deepwoods Software        -- Linux Installation and Administration
http://www.deepsoft.com/  -- Web Hosting, with CGI and Database
heller@xxxxxxxxxxxx       -- Contract Programming: C/C++, Tcl/Tk

[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