Hey folks, Is there any way to fake a "yum update" just to get yum to force a download of all the files it needs, without actually installing them. I finally have a RPM cache/proxy working and I just want to populate it. The server I want to actually update cannot be updated until tomorrow but I'd like to do a fake update just to force the RPMs into my cache so they will all be pre-downloaded. I don't see anyway from the man page to do this. thanks, -Alan -- ?Don't eat anything you've ever seen advertised on TV? - Michael Pollan, author of "In Defense of Food"
You can use the yum download-only plugin, or you can enable a keep cache variable in your /etc/yum.repos.d/yourfile.repo. Don't remember the syntax off the top of my head. However a quick google search should turn them both up. Other option if you want to sync a repo you can check out an application called cobbler. On Mon, Dec 19, 2011 at 11:39 AM, Alan McKay <alan.mckay at gmail.com> wrote:> Hey folks, > > Is there any way to fake a "yum update" just to get yum to force a download > of all the files it needs, without actually installing them. > > I finally have a RPM cache/proxy working and I just want to populate it. > The server I want to actually update cannot be updated until tomorrow but > I'd like to do a fake update just to force the RPMs into my cache so they > will all be pre-downloaded. > > I don't see anyway from the man page to do this. > > thanks, > -Alan > > -- > ?Don't eat anything you've ever seen advertised on TV? > - Michael Pollan, author of "In Defense of Food" > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >-- ------------------------------------------------------------------------------------------------------------------------------------- NOTICE: This message, including all attachments, is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering this message to its intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by replying "Received in error" and immediately delete this message and all its attachments. -------------------------------------------------------------------------------------------------------------------------------------
2011/12/19 Alan McKay <alan.mckay at gmail.com>:> Hey folks, > > Is there any way to fake a "yum update" just to get yum to force a download > of all the files it needs, without actually installing them. > > I finally have a RPM cache/proxy working and I just want to populate it. > The server I want to actually update cannot be updated until tomorrow but > I'd like to do a fake update just to force the RPMs into my cache so they > will all be pre-downloaded. > > I don't see anyway from the man page to do this.You can use reposing tool for almost similar functionality.. -- Eero
On Mon, Dec 19, 2011 at 11:39 AM, Alan McKay <alan.mckay at gmail.com> wrote:> Hey folks, > > Is there any way to fake a "yum update" just to get yum to force a download > of all the files it needs, without actually installing them. > > I finally have a RPM cache/proxy working and I just want to populate it. > The server I want to actually update cannot be updated until tomorrow but > I'd like to do a fake update just to force the RPMs into my cache so they > will all be pre-downloaded. > > I don't see anyway from the man page to do this. > > thanks, > -Alan > >Why not just mirror the CentOS repo with rsync? You can have a script rsync nightly so updates are ready to install when you need them. Additionally your repo will be consistent with CentOS. If you use a proxy you could have inconsistent results depending on the cache time to live. Ryan
On Mon, Dec 19, 2011 at 10:39 AM, Alan McKay <alan.mckay at gmail.com> wrote:> Hey folks, > > Is there any way to fake a "yum update" just to get yum to force a download > of all the files it needs, without actually installing them.Do a 'yum install yum-downloadonly', and then you can 'yum -y --downloadonly update'. This is also useful to prepare for where you want to baby-sit an update but don't want to wait for the downloads to happen. A subsequent 'yum update' then goes very quickly.> I finally have a RPM cache/proxy working and I just want to populate it.Note that if you are using a squid or similar http proxy, it will work to cache rpms as long as you have it configured to keep large files, but if you don't modify each client you'll end up pulling a copy from several different mirrors into your cache. -- Les Mikesell lesmikesell at gmail.com
Ljubomir Ljubojevic
2011-Dec-19 17:50 UTC
[CentOS] forcing yum to download but not install
Vreme: 12/19/2011 05:39 PM, Alan McKay pi?e:> Hey folks, > > Is there any way to fake a "yum update" just to get yum to force a download > of all the files it needs, without actually installing them. > > I finally have a RPM cache/proxy working and I just want to populate it. > The server I want to actually update cannot be updated until tomorrow but > I'd like to do a fake update just to force the RPMs into my cache so they > will all be pre-downloaded. > > I don't see anyway from the man page to do this. > > thanks, > -Alan >Let me let you on little secret. It seams nobody thought about it. run "yum update" and wait until it downloads last package. then when it starts Transaction check just abort it with <Ctrl>+<C>. That will download all packages you need but will not install them. The next time you run update it will show them bold. At this point you can even copy /var/cache/yum to be safe, but it should keep the packages until yum clean all or finish of yum update. -- Ljubomir Ljubojevic (Love is in the Air) PL Computers Serbia, Europe Google is the Mother, Google is the Father, and traceroute is your trusty Spiderman... StarOS, Mikrotik and CentOS/RHEL/Linux consultant