On 7/20/07, Timothy Murphy <tim@xxxxxxxxxxxxxxxxxxxxxx> wrote:
I asked a while ago if there was any way of only downloading a package once and then installing it on several machine, and I was advised that the yum-downloadonly plugin would serve this purpose. I just got round to looking at this, and I don't really see how to set this up. What I would like is an option to yum, say localrepo, so that if I say "yum --localrepo update" then 1. yum will look first to see if the package it wants is already in the directory /common/RPMS/ (specified in some config file), and install it from there if it is found; and
You do not need the yum-downloadonly plugin. Edit /etc/yum.conf and change "keepcache=0" to "keepcache=1". All the rpms that yum downloads will remain in the /var/cache/yum directories (separate directory for each repo) until you dispose of them (yum clean packages, rm xxx, mv yyy, etc.). If you want other machines on your network to be able to use those downloaded rpm files copy or move them to another directory, e.g. your localrepo directory.
2. If it does not find the package locally it will download and install it, and save a copy in /common/RPMS . Is this already available, eg using yum localinstall ? -- Timothy Murphy
-- fedora-list mailing list fedora-list@xxxxxxxxxx To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list