Gabriel wrote:
Hi,
I want to sync only the 11.0 updates repository.
tried with,
rsync -rlpt rsync://rsync.opensuse.org/update/11.0 ..... .... rsync.opensuse.org::update/11.0 ... .... rsync.opensuse.org:update/11.0 ...
I ended up with connection refused or unknown module 'update', depending the case.
Is there any way to point to a specific path?
Gabriel, I considered using rsync for mirroring some of update/11.0, but why? If you just want to save a copy of all the rpms you install, then with zypper, just modify the update repository using -k or ( --keep-packages ) option and all the updates that are installed on your system are automatically created in /var/cache/zypp/packages. For example if the alias for your "Updates for 11.0" repository is 'updates', then: zypper mr -k updates will do exactly what you want. You can also use the keep-packages option on any other repo, you want to save rpms from in the exact same manner. What I do is just set the -k option on all my repositories with a simple script and then disable the -k option on the few that you don't want to keep packages from (i.e. DVD, oss, etc...). There are 2 ways to accomplish this, (1) use zypper modify repository (mr), or just use perl to modify the repo files in place in /etc/zypp/repo.d/. Take your pick. Just run the following as root to set the keep-packages option on all repositories: (1) for i in $(zypper lr | awk -F \| '{ print $2 }' | sed -e '1,2d'); do zypper mr --keep-packages $i done (2) OLDIFS=$IFS IFS=$'\n' for i in $(ls /etc/zypp/repos.d); do perl -p -i -e 's/keeppackages=0/keeppackages=1/' /etc/zypp/repos.d/$i done IFS=$OLDIFS Then just go back and 'unset' the keeppackages option on any repo you don't want to save the installed rpms from. Now all of the rpms you download and install are automatically cached for you without the need of rsync. (Note: on 10.3 and earlier, you have to use rsync -- there is no keeppackages option) Another tip for /etc/zypp/zypp.conf is to set: download.use_deltarpm = false to prevent the download and use of delta rpms. In my opinion as long as you have ~ 1M/s download speed on your internet, then you should disable delta rpm use, especially if you are saving the rpms for later use. If you want more information on creating and managing your own local update repository on your LAN, see my quick and dirty howto at: http://www.3111skyline.com/linux/openSuSE-LocalUpdate.php Have fun! -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org