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
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@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@centos.org http://lists.centos.org/mailman/listinfo/centos
Oh but keep in mind if you enable keep cache in your repo file it will still install them, just it will keep a copy as well. Keep that in mind.
On Mon, Dec 19, 2011 at 11:42 AM, cliff here c4ifford@gmail.com wrote:
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@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@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.
On Mon, Dec 19, 2011 at 11:42 AM, cliff here c4ifford@gmail.com wrote:
You can use the yum download-only plugin,
I'll second the download-only plugin. It is also useful when upgrading point releases because you can download all the packages locally to stage the install, then perform the actual install in smaller chunks at your leisure.
2011/12/19 Alan McKay alan.mckay@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@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
Which is why you should use cobbler because it does all that for you.
On Mon, Dec 19, 2011 at 11:56 AM, Ryan Wagoner rswagoner@gmail.com wrote:
On Mon, Dec 19, 2011 at 11:39 AM, Alan McKay alan.mckay@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 _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Mon, Dec 19, 2011 at 12:02 PM, cliff here c4ifford@gmail.com wrote:
Which is why you should use cobbler because it does all that for you.
I actually just installed cobbler a few weeks ago and will look into it for this to see if it has a way to grab a repository without rsync
Alan, if your worried about keeping an up to date repository locally and consistently, then yes cobbler is the way to go. If all you want to do is an update and save off the RPMS once.. then use the yum download only plugin.
On Mon, Dec 19, 2011 at 12:23 PM, Alan McKay alan.mckay@gmail.com wrote:
On Mon, Dec 19, 2011 at 12:02 PM, cliff here c4ifford@gmail.com wrote:
Which is why you should use cobbler because it does all that for you.
I actually just installed cobbler a few weeks ago and will look into it for this to see if it has a way to grab a repository without rsync
-- “Don't eat anything you've ever seen advertised on TV” - Michael Pollan, author of "In Defense of Food" _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Mon, Dec 19, 2011 at 12:38 PM, cliff here c4ifford@gmail.com wrote:
Alan, if your worried about keeping an up to date repository locally and consistently, then yes cobbler is the way to go. If all you want to do is an update and save off the RPMS once.. then use the yum download only plugin.
It will probably be a one-shot deal since I have a bunch of 5.3 machines that I need to upgrade to 5.7
Though I just discovered that my squid proxy is not in fact working. So now I have to go figure out why not :-(
I had already tried this one but it was not working, so decided to go with squid http://terrarum.net/administration/caching-rpms-with-automirror.html
On Mon, Dec 19, 2011 at 12:10 PM, Alan McKay alan.mckay@gmail.com wrote:
Though I just discovered that my squid proxy is not in fact working. So now I have to go figure out why not :-(
The default config won't cache large files. And yum will try to use different mirrors every time.
-- Les Mikesell lesmikesell@gmail.com
On Mon, Dec 19, 2011 at 1:10 PM, Alan McKay alan.mckay@gmail.com wrote: [snip]
I had already tried this one but it was not working, so decided to go with squid http://terrarum.net/administration/caching-rpms-with-automirror.html
I've got automirror working on my CentOS 5.x machines. I can't say I'm a real expert with it, but if you post your symptoms maybe I can help you troubleshoot it.
I've got automirror working on my CentOS 5.x machines. I can't say I'm a real expert with it, but if you post your symptoms maybe I can help you troubleshoot it.
Thanks but I've already been chatting with the author who is stumped at this point - so I'm just going to give up.
He said he has found cases where automirror does not work and so he uses polipo in those cases - so that is where I am off to now :-0
I have it working but there is this matter of yum choosing different mirrors ...
On Mon, Dec 19, 2011 at 14:11, Alan McKay alan.mckay@gmail.com wrote:
I've got automirror working on my CentOS 5.x machines. I can't say I'm a real expert with it, but if you post your symptoms maybe I can help you troubleshoot it.
Thanks but I've already been chatting with the author who is stumped at this point - so I'm just going to give up.
He said he has found cases where automirror does not work and so he uses polipo in those cases - so that is where I am off to now :-0
I have it working but there is this matter of yum choosing different mirrors ...
Disable the mirrorlist line in the .repo file and point it at one specific mirror?
Disable the mirrorlist line in the .repo file and point it at one specific mirror?
Yeah that is what I can do - should work
Though I'm thinking at this point my easiest solution will be to take my laptop home and rsync an entire repo to it, then take it back and rsync it to my server. Ugly but should work.
On Mon, Dec 19, 2011 at 2:11 PM, Alan McKay alan.mckay@gmail.com wrote:
I've got automirror working on my CentOS 5.x machines. I can't say I'm a real expert with it, but if you post your symptoms maybe I can help you troubleshoot it.
Thanks but I've already been chatting with the author who is stumped at this point - so I'm just going to give up.
He said he has found cases where automirror does not work and so he uses polipo in those cases - so that is where I am off to now :-0
I have it working but there is this matter of yum choosing different mirrors ...
That is one advantage of the way automirror worked, since it was specific to yum it didn't mind the mirror configuration.
One way around the mirror list issue is pointed out by Guru labs (though I admit hijacking the DNS seems heavy handed)
http://www.gurulabs.com/goodies/guru-guides/YUM-automatic-local-mirror/
That is one advantage of the way automirror worked, since it was specific to yum it didn't mind the mirror configuration.
Yes, would be nice if it worked for me :-(
One way around the mirror list issue is pointed out by Guru labs (though I admit hijacking the DNS seems heavy handed)
http://www.gurulabs.com/goodies/guru-guides/YUM-automatic-local-mirror/
I'll look at it. I just installed the "yum-downloadonly" on one box and am starting the upgrade with that flag enabled.
Then I suppose I can mount the cache directory on other servers before updating them and I should be golden
Given that I've only got 5 or 6 boxes to do it should not be a major problem.
But I'll look at the link above as well
http://www.gurulabs.com/goodies/guru-guides/YUM-automatic-local-mirror/
oh man, that is one nasty, dirty hack!
I'm jealous I did not think of it myself :-)
On Mon, Dec 19, 2011 at 10:56 AM, Ryan Wagoner rswagoner@gmail.com wrote:
On Mon, Dec 19, 2011 at 11:39 AM, Alan McKay alan.mckay@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.
Mirroring a whole repo to save bandwidth for copying the updates to the subset of RPMs that you have installed never sounded like a good way to save bandwidth to me.... And proxies are supposed to check for changes - otherwise you couldn't do much web activity through them.
On Mon, Dec 19, 2011 at 10:39 AM, Alan McKay alan.mckay@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.
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.
I would highly advise against trying to time a CTRL-C in a specific amount of time. Not sure why you would even try and do that when, that's the exact purpose of the yum-download only which is easier to install and run then wait for a whole update to complete and try and manually kill the job. Sorry but that idea is just bad.
On Mon, Dec 19, 2011 at 12:50 PM, Ljubomir Ljubojevic office@plnet.rswrote:
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 _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Vreme: 12/19/2011 07:04 PM, cliff here piše:
I would highly advise against trying to time a CTRL-C in a specific amount of time. Not sure why you would even try and do that when, that's the exact purpose of the yum-download only which is easier to install and run then wait for a whole update to complete and try and manually kill the job. Sorry but that idea is just bad.
While in Run Transaction test, it does not write anything, so it is rather safe. I have done it a number of times over the years, just when Transaction tests are beginning, and never had any issues. But OK, I understand what you are saying.