[opensuse] rsync part of the update repository
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 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? - -- Kind regards. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEAREIAAYFAkngxPsACgkQNHr4BkRe3pLPgACfZLOEJZSDNju3NtGH+JnIkIRu pokAn3KsGR8vCYEQcKJXkB5CIblcuyxb =Jxug -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sat, 11 Apr 2009, 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?
The one I use is: rsync://ftp5.gwdg.de/pub/pub/opensuse/update/11.0/ although you can use this one instead: rsync://rsync.opensuse.org/opensuse-updates/11.0/ Regards, David Bolt -- Team Acorn: http://www.distributed.net/ OGR-NG @ ~100Mnodes RC5-72 @ ~1Mkeys/s openSUSE 10.3 32b | openSUSE 11.0 32b | | openSUSE 10.3 64b | openSUSE 11.0 64b | openSUSE 11.1 64b | openSUSE 10.3 PPC | RISC OS 3.6 | RISC OS 3.11 | TOS 4.02 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 David Bolt escribió:
The one I use is:
rsync://ftp5.gwdg.de/pub/pub/opensuse/update/11.0/
although you can use this one instead:
rsync://rsync.opensuse.org/opensuse-updates/11.0/
Great, that works. Thanks. - -- Kind regards. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEAREIAAYFAkng0bQACgkQNHr4BkRe3pJFbgCfcyln9D/GXAiqO/U5unxqccuF CIMAnjsE4VmYe55Ua9n+kKdxLGOx6OOU =FDls -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
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
On Mon, Apr 13, 2009 at 9:53 AM, David C. Rankin
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
Is there a way to do this for the Yast > Software > Software Management / Yast > Software > Online Repositories ? Alternately, will doing the above through zypper CLI work (ensure packages are stored locally) when I install packages through Yast Software Management module ? Thanks, Jay -- Linux User 483705 (openSUSE 11.1, Fedora 10) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Jay Mistry wrote: <snip>
Is there a way to do this for the Yast > Software > Software Management / Yast > Software > Online Repositories ?
There isn't a way to do it with Yast (at least in 11.0 and by 11.1 I was so used to just using zypper, I never looked)
Alternately, will doing the above through zypper CLI work (ensure packages are stored locally) when I install packages through Yast Software Management module ?
Thanks,
Jay
Yes, that's the beauty of using 'zypper mr -k <repo alias>' to modify your existing repository files to enable the permanent saving of all updates/(or regular package rpms) that you install. To enable the same behavior when you are adding new repositories, just use 'zypper ar -k <repo URL> <repo alias>'. Both accomplish the exact same thing which is simply to set the keeppackages=1 parameter in the repository configuration files located in /etc/zypp/repos.d/*. (The repository files have a .repo 'extension', for lack of better words) Each repository you have added to your system has a very short config file located under the /etc/zypp/repos.d/ directory that controls the repository attributes for its name, alias, refresh behavior, etc. and whether rpms from that repository are cached (the keeppackages=0/1 parameter). The files are just text files that you can edit with any text editor if you want to set everything up by hand. An example of a repo file is: 00:10 alchemy:~> cat /etc/zypp/repos.d/updatesgwdg.repo [updatesgwdg] name=updatesgwdg baseurl=ftp://ftp5.gwdg.de/pub/opensuse/update/11.0/ type=rpm-md enabled=0 autorefresh=1 gpgcheck=1 keeppackages=1 Changing keeppackages=1 to keeppackages=0 *disables* rpm caching, changing keeppackages=0 to keeppackages=1 *enables* rpm caching. Here is where I think your question was headed. Once you modify the /etc/zypp/repos.d/ config file for a repository -- then it *doesn't* matter whether you use zypper (in/up) or Yast to install or update packages, the rpms are saved under /var/cache/zypp/packages/ (default dir) for later use. The config file that controls 'where' the rpms are saved is /etc/zypp/zypp.conf. It's well documented and will let you further tailor how and where the cached rpms are saved. Once you set things up with zypper (or by simply editing the config files) you can go back to using yast and your rpms are still saved. (Basically yast package management just uses zypper anyway) It is really a slick and simple system when you take a closer look at it. I'm sure some day in the future there will be a GUI interface that lets you set all the individual parameter for the repo conf files, but for now, it's simple enough just to do it from the command line -- and like most, once you start using the command line interface (CLI) to manage one part of your system, you usually end up getting hooked and find out just how many other things you can tweak/manage from the CLI that there simply is no GUI interface to. HTHs, Cheers -- 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
participants (4)
-
David Bolt
-
David C. Rankin
-
Gabriel
-
Jay Mistry