Hello,
At home I have a slow internet connection, Thus, I would like to prepare an update but only download the packages to another machine and then copy the file on a stick to make the update from the stick.
How can I do it?
Thank.
Patrick Dupre writes:
Hello,
At home I have a slow internet connection, Thus, I would like to prepare an update but only download the packages to another machine and then copy the file on a stick to make the update from the stick.
How can I do it?
Pick your favorite updates mirror, and set up a script to rsync it to your stick. Format the stick as ext3, rather than fat. Mount the stick, and drop an entry in /etc/yum.repos.d that points to the stick. Run yum update.
On 07/29/2012 12:10 PM, Patrick Dupre wrote:
Hello,
At home I have a slow internet connection, Thus, I would like to prepare an update but only download the packages to another machine and then copy the file on a stick to make the update from the stick.
How can I do it?
My thought is to use yum to check for updates, redirecting the output to a file. Take that file to your other box and use it to download the files onto the stick. One warning: doing this won't find any new dependencies, so you may have problems getting everything properly updated. I'm sure there are ways to work around this, but I've never needed them so I don't know.
On 07/29/2012 12:19 PM, Sam Varshavchik wrote:
Pick your favorite updates mirror, and set up a script to rsync it to your stick. Format the stick as ext3, rather than fat. Mount the stick, and drop an entry in /etc/yum.repos.d that points to the stick. Run yum update.
Much better than my suggestion. Thanx!
On Sun, 29 Jul 2012 21:10:23 +0200, Patrick Dupre wrote:
Hello,
At home I have a slow internet connection, Thus, I would like to prepare an update but only download the packages to another machine and then copy the file on a stick to make the update from the stick.
How can I do it?
If you don't want to mirror the entire updates repository, examine yum-plugin-downloadonly and/or yum-plugin-local, also the createrepo tool.
On Sun, 29 Jul 2012 21:10:23 +0200 Patrick Dupre pdupre@kegtux.org wrote:
Hello,
At home I have a slow internet connection, Thus, I would like to prepare an update but only download the packages to another machine and then copy the file on a stick to make the update from the stick.
How can I do it?
Thank.
I update my laptop at work and rsync to other machines when I get home. Here's a variation on that:
... On fasthost, modify /etc/yum.conf to set keepcache=1. ... If you've not set keepcache before, then you may still end up downloading ... dependencies (to slowhost) not kept on fasthost from previous runs.
fasthost# yum install/update [ --downloadonly ] THE-PACKAGES-I-WANT fasthost# rsync -avP --include='*/' --include='*rpm' --exclude='*' /var/cache/yum/ /media/STICK/yum/
... go home ...
slowhost# (edit /etc/yum.conf to set keepcache=1) slowhost# rsync -avP /media/STICK/yum/ /var/cache/yum/ slowhost# yum update/install
This will only copy the RPMs; yum will still download metadata (see yum.conf for "metadata_expire").
... optionally, rsync RPMs back to STICK, then back to fasthost
Am 29.07.2012 21:10, schrieb Patrick Dupre:
Hello,
At home I have a slow internet connection, Thus, I would like to prepare an update but only download the packages to another machine and then copy the file on a stick to make the update from the stick.
How can I do it?
i have one build/repo-machine (virtual machine) which as installed each package i am using on any machine
the script below results in having a complete repo on /repo/cache/fc16/ or whatever release version there is running and this can be copied to any other machine and after create a rep-file at /etc/yum.repos.d/ used for updates
in my real work all other machines have only this repo enabled and so my buildserver is also the instance for testing updates and deploy them with another script to any other machine in the network
[root@buildserver:/buildserver]$ cat repo-cache.sh #!/bin/bash basearch=`uname -i` releasever=`rpm -q --qf "%{version}\n" fedora-release` for g in `ls -1b /var/cache/yum` do if [ -d /var/cache/yum/$g/packages ] then echo "/var/cache/yum/$g/packages/ > /repo/cache/fc$releasever/" sudo cp --verbose /var/cache/yum/$g/packages/*.rpm /repo/cache/fc$releasever/ 2> /dev/null fi done createrepo /repo/cache/fc$releasever/ chmod -R 755 /repo/cache/fc$releasever/
Thank for the suggestion. However, the problem is that yum (on the "fast host") check that the package for nstallation, update or reinstallation.
So I did not find a way to down load on the fast host the package for another distribution, like a i686 from a host x86_64. Can I force yum to not check. Maybe I should use rpm?
At home I have a slow internet connection, Thus, I would like to prepare an update but only download the packages to another machine and then copy the file on a stick to make the update from the stick.
How can I do it?
Thank.
I update my laptop at work and rsync to other machines when I get home. Here's a variation on that:
... On fasthost, modify /etc/yum.conf to set keepcache=1. ... If you've not set keepcache before, then you may still end up downloading ... dependencies (to slowhost) not kept on fasthost from previous runs.
fasthost# yum install/update [ --downloadonly ] THE-PACKAGES-I-WANT fasthost# rsync -avP --include='*/' --include='*rpm' --exclude='*' /var/cache/yum/ /media/STICK/yum/
... go home ...
slowhost# (edit /etc/yum.conf to set keepcache=1) slowhost# rsync -avP /media/STICK/yum/ /var/cache/yum/ slowhost# yum update/install
This will only copy the RPMs; yum will still download metadata (see yum.conf for "metadata_expire").
... optionally, rsync RPMs back to STICK, then back to fasthost
On Wed, 08 Aug 2012 03:44:53 +0200, Patrick Dupre wrote:
Thank for the suggestion. However, the problem is that yum (on the "fast host") check that the package for nstallation, update or reinstallation.
So I did not find a way to down load on the fast host the package for another distribution, like a i686 from a host x86_64. Can I force yum to not check. Maybe I should use rpm?
No, the problem you're trying to solve asks for a different approach. Think about it a little bit. A Fedora x86_64 installation by default does not have access to the i686 repositories, only the x86_64 repos which contain a few i686 packages only. And one installation doesn't "know" which packages you need for the other installation.
If your "fast host" is really fast, it could be convenient enough to mirror _any_ remote updates repo you need with a tool of your choice. Be it reposync, rsync, lftp, wget, curl, whatever you are familiar with. Transfer the mirrored repo to the target machine and make it available there, either temporarily or as some local enabled-by-default repo which you would update with your mirrored packages.